aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/ep93xx/ep93xx-pcm.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-23 23:07:55 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-24 05:43:59 -0500
commitee18f6314fa16376d53c29ecf9704011f2ce8180 (patch)
treeda5f090065b5b31fe74f349cdb62c335d79faf66 /sound/soc/ep93xx/ep93xx-pcm.c
parent45f3121615b2b354f7d95d30f795bc5fe0043e92 (diff)
ASoC: Convert ep93xx directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mika Westerberg <mika.westerberg@iki.fi> Acked-by: Alexander Sverdlin <subaparts@yandex.ru> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/ep93xx/ep93xx-pcm.c')
-rw-r--r--sound/soc/ep93xx/ep93xx-pcm.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/ep93xx/ep93xx-pcm.c b/sound/soc/ep93xx/ep93xx-pcm.c
index d00230a591b1..a2de9c42b702 100644
--- a/sound/soc/ep93xx/ep93xx-pcm.c
+++ b/sound/soc/ep93xx/ep93xx-pcm.c
@@ -339,18 +339,7 @@ static struct platform_driver ep93xx_pcm_driver = {
339 .remove = __devexit_p(ep93xx_soc_platform_remove), 339 .remove = __devexit_p(ep93xx_soc_platform_remove),
340}; 340};
341 341
342static int __init ep93xx_soc_platform_init(void) 342module_platform_driver(ep93xx_pcm_driver);
343{
344 return platform_driver_register(&ep93xx_pcm_driver);
345}
346
347static void __exit ep93xx_soc_platform_exit(void)
348{
349 platform_driver_unregister(&ep93xx_pcm_driver);
350}
351
352module_init(ep93xx_soc_platform_init);
353module_exit(ep93xx_soc_platform_exit);
354 343
355MODULE_AUTHOR("Ryan Mallon"); 344MODULE_AUTHOR("Ryan Mallon");
356MODULE_DESCRIPTION("EP93xx ALSA PCM interface"); 345MODULE_DESCRIPTION("EP93xx ALSA PCM interface");