aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/nuc900/nuc900-ac97.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/nuc900/nuc900-ac97.c')
-rw-r--r--sound/soc/nuc900/nuc900-ac97.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sound/soc/nuc900/nuc900-ac97.c b/sound/soc/nuc900/nuc900-ac97.c
index caa7c901bc2e..02b64a17dec2 100644
--- a/sound/soc/nuc900/nuc900-ac97.c
+++ b/sound/soc/nuc900/nuc900-ac97.c
@@ -297,8 +297,7 @@ static struct snd_soc_dai_ops nuc900_ac97_dai_ops = {
297 .trigger = nuc900_ac97_trigger, 297 .trigger = nuc900_ac97_trigger,
298}; 298};
299 299
300struct snd_soc_dai nuc900_ac97_dai = { 300static struct snd_soc_dai_driver nuc900_ac97_dai = {
301 .name = "nuc900-ac97",
302 .probe = nuc900_ac97_probe, 301 .probe = nuc900_ac97_probe,
303 .remove = nuc900_ac97_remove, 302 .remove = nuc900_ac97_remove,
304 .ac97_control = 1, 303 .ac97_control = 1,
@@ -316,7 +315,6 @@ struct snd_soc_dai nuc900_ac97_dai = {
316 }, 315 },
317 .ops = &nuc900_ac97_dai_ops, 316 .ops = &nuc900_ac97_dai_ops,
318} 317}
319EXPORT_SYMBOL_GPL(nuc900_ac97_dai);
320 318
321static int __devinit nuc900_ac97_drvprobe(struct platform_device *pdev) 319static int __devinit nuc900_ac97_drvprobe(struct platform_device *pdev)
322{ 320{
@@ -365,9 +363,7 @@ static int __devinit nuc900_ac97_drvprobe(struct platform_device *pdev)
365 363
366 nuc900_ac97_data = nuc900_audio; 364 nuc900_ac97_data = nuc900_audio;
367 365
368 nuc900_audio->dev = nuc900_ac97_dai.dev = &pdev->dev; 366 ret = snd_soc_register_dai(&pdev->dev, &nuc900_ac97_dai);
369
370 ret = snd_soc_register_dai(&nuc900_ac97_dai);
371 if (ret) 367 if (ret)
372 goto out3; 368 goto out3;
373 369
@@ -390,7 +386,7 @@ out0:
390static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev) 386static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev)
391{ 387{
392 388
393 snd_soc_unregister_dai(&nuc900_ac97_dai); 389 snd_soc_unregister_dai(&pdev->dev);
394 390
395 clk_put(nuc900_ac97_data->clk); 391 clk_put(nuc900_ac97_data->clk);
396 iounmap(nuc900_ac97_data->mmio); 392 iounmap(nuc900_ac97_data->mmio);
@@ -404,7 +400,7 @@ static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev)
404 400
405static struct platform_driver nuc900_ac97_driver = { 401static struct platform_driver nuc900_ac97_driver = {
406 .driver = { 402 .driver = {
407 .name = "nuc900-audio", 403 .name = "nuc900-ac97",
408 .owner = THIS_MODULE, 404 .owner = THIS_MODULE,
409 }, 405 },
410 .probe = nuc900_ac97_drvprobe, 406 .probe = nuc900_ac97_drvprobe,