diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-23 23:07:55 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-24 05:43:59 -0500 |
commit | ee18f6314fa16376d53c29ecf9704011f2ce8180 (patch) | |
tree | da5f090065b5b31fe74f349cdb62c335d79faf66 /sound/soc/ep93xx/edb93xx.c | |
parent | 45f3121615b2b354f7d95d30f795bc5fe0043e92 (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/edb93xx.c')
-rw-r--r-- | sound/soc/ep93xx/edb93xx.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/ep93xx/edb93xx.c b/sound/soc/ep93xx/edb93xx.c index 51930b6a83a..6b90c757cf4 100644 --- a/sound/soc/ep93xx/edb93xx.c +++ b/sound/soc/ep93xx/edb93xx.c | |||
@@ -131,17 +131,7 @@ static struct platform_driver edb93xx_driver = { | |||
131 | .remove = __devexit_p(edb93xx_remove), | 131 | .remove = __devexit_p(edb93xx_remove), |
132 | }; | 132 | }; |
133 | 133 | ||
134 | static int __init edb93xx_init(void) | 134 | module_platform_driver(edb93xx_driver); |
135 | { | ||
136 | return platform_driver_register(&edb93xx_driver); | ||
137 | } | ||
138 | module_init(edb93xx_init); | ||
139 | |||
140 | static void __exit edb93xx_exit(void) | ||
141 | { | ||
142 | platform_driver_unregister(&edb93xx_driver); | ||
143 | } | ||
144 | module_exit(edb93xx_exit); | ||
145 | 135 | ||
146 | MODULE_AUTHOR("Alexander Sverdlin <subaparts@yandex.ru>"); | 136 | MODULE_AUTHOR("Alexander Sverdlin <subaparts@yandex.ru>"); |
147 | MODULE_DESCRIPTION("ALSA SoC EDB93xx"); | 137 | MODULE_DESCRIPTION("ALSA SoC EDB93xx"); |