diff options
Diffstat (limited to 'sound/soc/imx/imx-ssi.c')
-rw-r--r-- | sound/soc/imx/imx-ssi.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/soc/imx/imx-ssi.c b/sound/soc/imx/imx-ssi.c index 4c05e2b8f4d2..01d1f749cf02 100644 --- a/sound/soc/imx/imx-ssi.c +++ b/sound/soc/imx/imx-ssi.c | |||
@@ -342,7 +342,7 @@ static int imx_ssi_trigger(struct snd_pcm_substream *substream, int cmd, | |||
342 | return 0; | 342 | return 0; |
343 | } | 343 | } |
344 | 344 | ||
345 | static struct snd_soc_dai_ops imx_ssi_pcm_dai_ops = { | 345 | static const struct snd_soc_dai_ops imx_ssi_pcm_dai_ops = { |
346 | .hw_params = imx_ssi_hw_params, | 346 | .hw_params = imx_ssi_hw_params, |
347 | .set_fmt = imx_ssi_set_dai_fmt, | 347 | .set_fmt = imx_ssi_set_dai_fmt, |
348 | .set_clkdiv = imx_ssi_set_dai_clkdiv, | 348 | .set_clkdiv = imx_ssi_set_dai_clkdiv, |
@@ -757,18 +757,7 @@ static struct platform_driver imx_ssi_driver = { | |||
757 | }, | 757 | }, |
758 | }; | 758 | }; |
759 | 759 | ||
760 | static int __init imx_ssi_init(void) | 760 | module_platform_driver(imx_ssi_driver); |
761 | { | ||
762 | return platform_driver_register(&imx_ssi_driver); | ||
763 | } | ||
764 | |||
765 | static void __exit imx_ssi_exit(void) | ||
766 | { | ||
767 | platform_driver_unregister(&imx_ssi_driver); | ||
768 | } | ||
769 | |||
770 | module_init(imx_ssi_init); | ||
771 | module_exit(imx_ssi_exit); | ||
772 | 761 | ||
773 | /* Module information */ | 762 | /* Module information */ |
774 | MODULE_AUTHOR("Sascha Hauer, <s.hauer@pengutronix.de>"); | 763 | MODULE_AUTHOR("Sascha Hauer, <s.hauer@pengutronix.de>"); |