aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/ep93xx/snappercl15.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/snappercl15.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/snappercl15.c')
-rw-r--r--sound/soc/ep93xx/snappercl15.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/ep93xx/snappercl15.c b/sound/soc/ep93xx/snappercl15.c
index 2cde43321eec..33901d647b72 100644
--- a/sound/soc/ep93xx/snappercl15.c
+++ b/sound/soc/ep93xx/snappercl15.c
@@ -147,18 +147,7 @@ static struct platform_driver snappercl15_driver = {
147 .remove = __devexit_p(snappercl15_remove), 147 .remove = __devexit_p(snappercl15_remove),
148}; 148};
149 149
150static int __init snappercl15_init(void) 150module_platform_driver(snappercl15_driver);
151{
152 return platform_driver_register(&snappercl15_driver);
153}
154
155static void __exit snappercl15_exit(void)
156{
157 platform_driver_unregister(&snappercl15_driver);
158}
159
160module_init(snappercl15_init);
161module_exit(snappercl15_exit);
162 151
163MODULE_AUTHOR("Ryan Mallon"); 152MODULE_AUTHOR("Ryan Mallon");
164MODULE_DESCRIPTION("ALSA SoC Snapper CL15"); 153MODULE_DESCRIPTION("ALSA SoC Snapper CL15");