Commit e2365bf3 authored by Marek Vasut's avatar Marek Vasut Committed by Mark Brown

ASoC: Pass correct platform data from pxa2xx-ac97

Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 821ebc86
...@@ -207,8 +207,8 @@ static int __devinit pxa2xx_ac97_probe(struct platform_device *dev) ...@@ -207,8 +207,8 @@ static int __devinit pxa2xx_ac97_probe(struct platform_device *dev)
snprintf(card->longname, sizeof(card->longname), snprintf(card->longname, sizeof(card->longname),
"%s (%s)", dev->dev.driver->name, card->mixername); "%s (%s)", dev->dev.driver->name, card->mixername);
if (pdata && pdata->codec_data) if (pdata && pdata->codec_data[0])
snd_ac97_dev_add_pdata(ac97_bus->codec[0], pdata->codec_pdata); snd_ac97_dev_add_pdata(ac97_bus->codec[0], pdata->codec_pdata[0]);
snd_card_set_dev(card, &dev->dev); snd_card_set_dev(card, &dev->dev);
ret = snd_card_register(card); ret = snd_card_register(card);
if (ret == 0) { if (ret == 0) {
......
...@@ -251,8 +251,8 @@ static int __devinit pxa2xx_ac97_dev_probe(struct platform_device *pdev) ...@@ -251,8 +251,8 @@ static int __devinit pxa2xx_ac97_dev_probe(struct platform_device *pdev)
for (i = 0; i < ARRAY_SIZE(pxa_ac97_dai); i++) { for (i = 0; i < ARRAY_SIZE(pxa_ac97_dai); i++) {
pxa_ac97_dai[i].dev = &pdev->dev; pxa_ac97_dai[i].dev = &pdev->dev;
if (pdata && pdata->codec_pdata) if (pdata && pdata->codec_pdata[0])
pxa_ac97_dai[i].ac97_pdata = pdata->codec_pdata; pxa_ac97_dai[i].ac97_pdata = pdata->codec_pdata[0];
} }
/* Punt most of the init to the SoC probe; we may need the machine /* Punt most of the init to the SoC probe; we may need the machine
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment