aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-mcpdm.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 21:12:16 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 08:15:31 -0500
commitbeda5bf575a93823289fbeb868b42e75e9f08d96 (patch)
treeb33732aec1d0724f77fb48f96eb34766356d2184 /sound/soc/omap/omap-mcpdm.c
parentf9b8a51493d69841bab3c5e85f335b6af0c8e5c2 (diff)
ASoC: Convert omap directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/omap/omap-mcpdm.c')
-rw-r--r--sound/soc/omap/omap-mcpdm.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c
index cc8ceff25dbd..b50ac60be7db 100644
--- a/sound/soc/omap/omap-mcpdm.c
+++ b/sound/soc/omap/omap-mcpdm.c
@@ -520,17 +520,7 @@ static struct platform_driver asoc_mcpdm_driver = {
520 .remove = __devexit_p(asoc_mcpdm_remove), 520 .remove = __devexit_p(asoc_mcpdm_remove),
521}; 521};
522 522
523static int __init snd_omap_mcpdm_init(void) 523module_platform_driver(asoc_mcpdm_driver);
524{
525 return platform_driver_register(&asoc_mcpdm_driver);
526}
527module_init(snd_omap_mcpdm_init);
528
529static void __exit snd_omap_mcpdm_exit(void)
530{
531 platform_driver_unregister(&asoc_mcpdm_driver);
532}
533module_exit(snd_omap_mcpdm_exit);
534 524
535MODULE_AUTHOR("Misael Lopez Cruz <misael.lopez@ti.com>"); 525MODULE_AUTHOR("Misael Lopez Cruz <misael.lopez@ti.com>");
536MODULE_DESCRIPTION("OMAP PDM SoC Interface"); 526MODULE_DESCRIPTION("OMAP PDM SoC Interface");