diff options
Diffstat (limited to 'sound/soc/nuc900/nuc900-ac97.c')
-rw-r--r-- | sound/soc/nuc900/nuc900-ac97.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/sound/soc/nuc900/nuc900-ac97.c b/sound/soc/nuc900/nuc900-ac97.c index caa7c901bc2e..293dc748797c 100644 --- a/sound/soc/nuc900/nuc900-ac97.c +++ b/sound/soc/nuc900/nuc900-ac97.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <sound/pcm.h> | 20 | #include <sound/pcm.h> |
21 | #include <sound/initval.h> | 21 | #include <sound/initval.h> |
22 | #include <sound/soc.h> | 22 | #include <sound/soc.h> |
23 | #include <linux/device.h> | ||
24 | #include <linux/clk.h> | 23 | #include <linux/clk.h> |
25 | 24 | ||
26 | #include <mach/mfp.h> | 25 | #include <mach/mfp.h> |
@@ -297,8 +296,7 @@ static struct snd_soc_dai_ops nuc900_ac97_dai_ops = { | |||
297 | .trigger = nuc900_ac97_trigger, | 296 | .trigger = nuc900_ac97_trigger, |
298 | }; | 297 | }; |
299 | 298 | ||
300 | struct snd_soc_dai nuc900_ac97_dai = { | 299 | static struct snd_soc_dai_driver nuc900_ac97_dai = { |
301 | .name = "nuc900-ac97", | ||
302 | .probe = nuc900_ac97_probe, | 300 | .probe = nuc900_ac97_probe, |
303 | .remove = nuc900_ac97_remove, | 301 | .remove = nuc900_ac97_remove, |
304 | .ac97_control = 1, | 302 | .ac97_control = 1, |
@@ -316,7 +314,6 @@ struct snd_soc_dai nuc900_ac97_dai = { | |||
316 | }, | 314 | }, |
317 | .ops = &nuc900_ac97_dai_ops, | 315 | .ops = &nuc900_ac97_dai_ops, |
318 | } | 316 | } |
319 | EXPORT_SYMBOL_GPL(nuc900_ac97_dai); | ||
320 | 317 | ||
321 | static int __devinit nuc900_ac97_drvprobe(struct platform_device *pdev) | 318 | static int __devinit nuc900_ac97_drvprobe(struct platform_device *pdev) |
322 | { | 319 | { |
@@ -365,9 +362,7 @@ static int __devinit nuc900_ac97_drvprobe(struct platform_device *pdev) | |||
365 | 362 | ||
366 | nuc900_ac97_data = nuc900_audio; | 363 | nuc900_ac97_data = nuc900_audio; |
367 | 364 | ||
368 | nuc900_audio->dev = nuc900_ac97_dai.dev = &pdev->dev; | 365 | ret = snd_soc_register_dai(&pdev->dev, &nuc900_ac97_dai); |
369 | |||
370 | ret = snd_soc_register_dai(&nuc900_ac97_dai); | ||
371 | if (ret) | 366 | if (ret) |
372 | goto out3; | 367 | goto out3; |
373 | 368 | ||
@@ -390,7 +385,7 @@ out0: | |||
390 | static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev) | 385 | static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev) |
391 | { | 386 | { |
392 | 387 | ||
393 | snd_soc_unregister_dai(&nuc900_ac97_dai); | 388 | snd_soc_unregister_dai(&pdev->dev); |
394 | 389 | ||
395 | clk_put(nuc900_ac97_data->clk); | 390 | clk_put(nuc900_ac97_data->clk); |
396 | iounmap(nuc900_ac97_data->mmio); | 391 | iounmap(nuc900_ac97_data->mmio); |
@@ -404,7 +399,7 @@ static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev) | |||
404 | 399 | ||
405 | static struct platform_driver nuc900_ac97_driver = { | 400 | static struct platform_driver nuc900_ac97_driver = { |
406 | .driver = { | 401 | .driver = { |
407 | .name = "nuc900-audio", | 402 | .name = "nuc900-ac97", |
408 | .owner = THIS_MODULE, | 403 | .owner = THIS_MODULE, |
409 | }, | 404 | }, |
410 | .probe = nuc900_ac97_drvprobe, | 405 | .probe = nuc900_ac97_drvprobe, |