[alsa-devel] [PATCH] ASoC: MPC5200: replace of_device with platform_device
'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,
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?
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.
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.
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?
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.
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.
participants (2)
-
Mark Brown
-
Timur Tabi