All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: MPC5200: replace of_device with platform_device
@ 2011-08-23 21:48 Timur Tabi
  2011-08-24  9:17 ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Timur Tabi @ 2011-08-23 21:48 UTC (permalink / raw)
  To: broonie, lrg, alsa-devel

'struct of_device' no longer exists, and its functionality has been merged
into platform_device.  Update the MPC5200 audio DMA driver (mpc5200_dma)
accordingly.  This fixes a build break.

Signed-off-by: Timur Tabi <timur@freescale.com>
---
 sound/soc/fsl/mpc5200_dma.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c
index fd0dc46..5c6c245 100644
--- a/sound/soc/fsl/mpc5200_dma.c
+++ b/sound/soc/fsl/mpc5200_dma.c
@@ -369,7 +369,7 @@ static struct snd_soc_platform_driver mpc5200_audio_dma_platform = {
 	.pcm_free	= &psc_dma_free,
 };
 
-static int mpc5200_hpcd_probe(struct of_device *op)
+static int mpc5200_hpcd_probe(struct platform_device *op)
 {
 	phys_addr_t fifo;
 	struct psc_dma *psc_dma;
@@ -487,7 +487,7 @@ out_unmap:
 	return ret;
 }
 
-static int mpc5200_hpcd_remove(struct of_device *op)
+static int mpc5200_hpcd_remove(struct platform_device *op)
 {
 	struct psc_dma *psc_dma = dev_get_drvdata(&op->dev);
 
@@ -519,7 +519,7 @@ MODULE_DEVICE_TABLE(of, mpc5200_hpcd_match);
 static struct platform_driver mpc5200_hpcd_of_driver = {
 	.probe		= mpc5200_hpcd_probe,
 	.remove		= mpc5200_hpcd_remove,
-	.dev = {
+	.driver = {
 		.owner		= THIS_MODULE,
 		.name		= "mpc5200-pcm-audio",
 		.of_match_table    = mpc5200_hpcd_match,
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] ASoC: MPC5200: replace of_device with platform_device
  2011-08-23 21:48 [PATCH] ASoC: MPC5200: replace of_device with platform_device Timur Tabi
@ 2011-08-24  9:17 ` Mark Brown
  2011-08-24 15:35   ` Timur Tabi
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2011-08-24  9:17 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel, lrg

On Tue, Aug 23, 2011 at 04:48:26PM -0500, Timur Tabi wrote:
> 'struct of_device' no longer exists, and its functionality has been merged
> into platform_device.  Update the MPC5200 audio DMA driver (mpc5200_dma)
> accordingly.  This fixes a build break.

Which version does this build issue apply to - 3.1 or 3.2?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ASoC: MPC5200: replace of_device with platform_device
  2011-08-24  9:17 ` Mark Brown
@ 2011-08-24 15:35   ` Timur Tabi
  2011-08-24 15:44     ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Timur Tabi @ 2011-08-24 15:35 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, lrg

Mark Brown wrote:
> On Tue, Aug 23, 2011 at 04:48:26PM -0500, Timur Tabi wrote:
>> 'struct of_device' no longer exists, and its functionality has been merged
>> into platform_device.  Update the MPC5200 audio DMA driver (mpc5200_dma)
>> accordingly.  This fixes a build break.
> 
> Which version does this build issue apply to - 3.1 or 3.2?

Everything.  It fixes a build break.

The defconfig for the MPC5200 does not enable audio, so by default the build
won't break.  It's up to you if you want to push this for 3.1.

-- 
Timur Tabi
Linux kernel developer at Freescale

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ASoC: MPC5200: replace of_device with platform_device
  2011-08-24 15:35   ` Timur Tabi
@ 2011-08-24 15:44     ` Mark Brown
  2011-08-24 15:50       ` Timur Tabi
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2011-08-24 15:44 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel, lrg

On Wed, Aug 24, 2011 at 10:35:55AM -0500, Timur Tabi wrote:
> Mark Brown wrote:

> > Which version does this build issue apply to - 3.1 or 3.2?

> Everything.  It fixes a build break.

> The defconfig for the MPC5200 does not enable audio, so by default the build
> won't break.  It's up to you if you want to push this for 3.1.

I'll apply it for 3.1, I was asking because I didn't know if the API
change happened in 3.1 or was only present 3.2.  Thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ASoC: MPC5200: replace of_device with platform_device
  2011-08-24 15:44     ` Mark Brown
@ 2011-08-24 15:50       ` Timur Tabi
  2011-08-24 15:57         ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Timur Tabi @ 2011-08-24 15:50 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, lrg

Mark Brown wrote:
> I'll apply it for 3.1, I was asking because I didn't know if the API
> change happened in 3.1 or was only present 3.2.  Thanks.

I think the change happened in 3.0, or maybe even earlier.

-- 
Timur Tabi
Linux kernel developer at Freescale

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ASoC: MPC5200: replace of_device with platform_device
  2011-08-24 15:50       ` Timur Tabi
@ 2011-08-24 15:57         ` Mark Brown
  2011-08-24 19:46           ` Timur Tabi
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2011-08-24 15:57 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel, lrg

On Wed, Aug 24, 2011 at 10:50:02AM -0500, Timur Tabi wrote:
> Mark Brown wrote:
> > I'll apply it for 3.1, I was asking because I didn't know if the API
> > change happened in 3.1 or was only present 3.2.  Thanks.

> I think the change happened in 3.0, or maybe even earlier.

Oh dear.  Can you check please, if it did there should be a CC stable?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ASoC: MPC5200: replace of_device with platform_device
  2011-08-24 15:57         ` Mark Brown
@ 2011-08-24 19:46           ` Timur Tabi
  2011-08-25  9:34             ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Timur Tabi @ 2011-08-24 19:46 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, lrg

Mark Brown wrote:
> On Wed, Aug 24, 2011 at 10:50:02AM -0500, Timur Tabi wrote:
>> Mark Brown wrote:
>>> I'll apply it for 3.1, I was asking because I didn't know if the API
>>> change happened in 3.1 or was only present 3.2.  Thanks.
> 
>> I think the change happened in 3.0, or maybe even earlier.
> 
> Oh dear.  Can you check please, if it did there should be a CC stable?

Apparently it was broken from the start, as git-bisect blames this commit:

f0fba2ad1b6b53d5360125c41953b7afcd6deff0 is the first bad commit
commit f0fba2ad1b6b53d5360125c41953b7afcd6deff0
Author: Liam Girdwood <lrg@slimlogic.co.uk>
Date:   Wed Mar 17 20:15:21 2010 +0000

    ASoC: multi-component - ASoC Multi-Component Support

I suspect the problem is that the defconfig for the MPC5200 doesn't actually
enable audio, so when that platform was tested, none of the ASoC code was
actually compiled.

-- 
Timur Tabi
Linux kernel developer at Freescale

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ASoC: MPC5200: replace of_device with platform_device
  2011-08-24 19:46           ` Timur Tabi
@ 2011-08-25  9:34             ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2011-08-25  9:34 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel, lrg

On Wed, Aug 24, 2011 at 02:46:17PM -0500, Timur Tabi wrote:

> I suspect the problem is that the defconfig for the MPC5200 doesn't actually
> enable audio, so when that platform was tested, none of the ASoC code was
> actually compiled.

OK, thanks for checking and fixing.  Like I said on IRC I applied the
patch with a CC to stable.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-25  9:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-23 21:48 [PATCH] ASoC: MPC5200: replace of_device with platform_device Timur Tabi
2011-08-24  9:17 ` Mark Brown
2011-08-24 15:35   ` Timur Tabi
2011-08-24 15:44     ` Mark Brown
2011-08-24 15:50       ` Timur Tabi
2011-08-24 15:57         ` Mark Brown
2011-08-24 19:46           ` Timur Tabi
2011-08-25  9:34             ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.