aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wl1273.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wl1273.c')
-rw-r--r--sound/soc/codecs/wl1273.c14
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
389static struct snd_soc_dai_ops wl1273_dai_ops = { 389static 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
513static int __init wl1273_init(void) 513module_platform_driver(wl1273_platform_driver);
514{
515 return platform_driver_register(&wl1273_platform_driver);
516}
517module_init(wl1273_init);
518
519static void __exit wl1273_exit(void)
520{
521 platform_driver_unregister(&wl1273_platform_driver);
522}
523module_exit(wl1273_exit);
524 514
525MODULE_AUTHOR("Matti Aaltonen <matti.j.aaltonen@nokia.com>"); 515MODULE_AUTHOR("Matti Aaltonen <matti.j.aaltonen@nokia.com>");
526MODULE_DESCRIPTION("ASoC WL1273 codec driver"); 516MODULE_DESCRIPTION("ASoC WL1273 codec driver");