mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ASoC: Pass correct platform data from pxa2xx-ac97
Signed-off-by: Marek Vasut <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
821ebc86ef
commit
e2365bf313
2 changed files with 4 additions and 4 deletions
|
|
@ -207,8 +207,8 @@ static int __devinit pxa2xx_ac97_probe(struct platform_device *dev)
|
|||
snprintf(card->longname, sizeof(card->longname),
|
||||
"%s (%s)", dev->dev.driver->name, card->mixername);
|
||||
|
||||
if (pdata && pdata->codec_data)
|
||||
snd_ac97_dev_add_pdata(ac97_bus->codec[0], pdata->codec_pdata);
|
||||
if (pdata && pdata->codec_data[0])
|
||||
snd_ac97_dev_add_pdata(ac97_bus->codec[0], pdata->codec_pdata[0]);
|
||||
snd_card_set_dev(card, &dev->dev);
|
||||
ret = snd_card_register(card);
|
||||
if (ret == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue