diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 21:12:16 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 08:15:31 -0500 |
commit | beda5bf575a93823289fbeb868b42e75e9f08d96 (patch) | |
tree | b33732aec1d0724f77fb48f96eb34766356d2184 /sound/soc/omap/omap-pcm.c | |
parent | f9b8a51493d69841bab3c5e85f335b6af0c8e5c2 (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-pcm.c')
-rw-r--r-- | sound/soc/omap/omap-pcm.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index 6ede7dc6c10a..52a0f634948e 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c | |||
@@ -433,17 +433,7 @@ static struct platform_driver omap_pcm_driver = { | |||
433 | .remove = __devexit_p(omap_pcm_remove), | 433 | .remove = __devexit_p(omap_pcm_remove), |
434 | }; | 434 | }; |
435 | 435 | ||
436 | static int __init snd_omap_pcm_init(void) | 436 | module_platform_driver(omap_pcm_driver); |
437 | { | ||
438 | return platform_driver_register(&omap_pcm_driver); | ||
439 | } | ||
440 | module_init(snd_omap_pcm_init); | ||
441 | |||
442 | static void __exit snd_omap_pcm_exit(void) | ||
443 | { | ||
444 | platform_driver_unregister(&omap_pcm_driver); | ||
445 | } | ||
446 | module_exit(snd_omap_pcm_exit); | ||
447 | 437 | ||
448 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>"); | 438 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>"); |
449 | MODULE_DESCRIPTION("OMAP PCM DMA module"); | 439 | MODULE_DESCRIPTION("OMAP PCM DMA module"); |