aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2009-08-21 14:02:52 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-08-23 13:18:01 -0400
commite2365bf313fb21b49b1e4c911033389564428d03 (patch)
tree6d4f0601fddc7ecc1a081d9ad61db0ef684ad876 /sound/soc/pxa
parent821ebc86efd4b42aa120076562b0fd4f03ec3c0c (diff)
ASoC: Pass correct platform data from pxa2xx-ac97
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r--sound/soc/pxa/pxa2xx-ac97.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c
index 7330e5c5b9df..e9ae7b3a7e00 100644
--- a/sound/soc/pxa/pxa2xx-ac97.c
+++ b/sound/soc/pxa/pxa2xx-ac97.c
@@ -251,8 +251,8 @@ static int __devinit pxa2xx_ac97_dev_probe(struct platform_device *pdev)
251 251
252 for (i = 0; i < ARRAY_SIZE(pxa_ac97_dai); i++) { 252 for (i = 0; i < ARRAY_SIZE(pxa_ac97_dai); i++) {
253 pxa_ac97_dai[i].dev = &pdev->dev; 253 pxa_ac97_dai[i].dev = &pdev->dev;
254 if (pdata && pdata->codec_pdata) 254 if (pdata && pdata->codec_pdata[0])
255 pxa_ac97_dai[i].ac97_pdata = pdata->codec_pdata; 255 pxa_ac97_dai[i].ac97_pdata = pdata->codec_pdata[0];
256 } 256 }
257 257
258 /* Punt most of the init to the SoC probe; we may need the machine 258 /* Punt most of the init to the SoC probe; we may need the machine