diff options
Diffstat (limited to 'sound/soc/codecs/wl1273.c')
-rw-r--r-- | sound/soc/codecs/wl1273.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c index a85498982991..44aacf927ba9 100644 --- a/sound/soc/codecs/wl1273.c +++ b/sound/soc/codecs/wl1273.c | |||
@@ -386,7 +386,7 @@ static int wl1273_hw_params(struct snd_pcm_substream *substream, | |||
386 | return 0; | 386 | return 0; |
387 | } | 387 | } |
388 | 388 | ||
389 | static struct snd_soc_dai_ops wl1273_dai_ops = { | 389 | static const struct snd_soc_dai_ops wl1273_dai_ops = { |
390 | .startup = wl1273_startup, | 390 | .startup = wl1273_startup, |
391 | .hw_params = wl1273_hw_params, | 391 | .hw_params = wl1273_hw_params, |
392 | }; | 392 | }; |
@@ -510,17 +510,7 @@ static struct platform_driver wl1273_platform_driver = { | |||
510 | .remove = __devexit_p(wl1273_platform_remove), | 510 | .remove = __devexit_p(wl1273_platform_remove), |
511 | }; | 511 | }; |
512 | 512 | ||
513 | static int __init wl1273_init(void) | 513 | module_platform_driver(wl1273_platform_driver); |
514 | { | ||
515 | return platform_driver_register(&wl1273_platform_driver); | ||
516 | } | ||
517 | module_init(wl1273_init); | ||
518 | |||
519 | static void __exit wl1273_exit(void) | ||
520 | { | ||
521 | platform_driver_unregister(&wl1273_platform_driver); | ||
522 | } | ||
523 | module_exit(wl1273_exit); | ||
524 | 514 | ||
525 | MODULE_AUTHOR("Matti Aaltonen <matti.j.aaltonen@nokia.com>"); | 515 | MODULE_AUTHOR("Matti Aaltonen <matti.j.aaltonen@nokia.com>"); |
526 | MODULE_DESCRIPTION("ASoC WL1273 codec driver"); | 516 | MODULE_DESCRIPTION("ASoC WL1273 codec driver"); |