diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 21:13:37 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 08:15:16 -0500 |
commit | 2f702a19154ddbd294825c0588593e1eef10b1e2 (patch) | |
tree | 55c940af293dbe308420924c0df88c8c2b7af647 /sound/soc/pxa/mioa701_wm9713.c | |
parent | 8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0 (diff) |
ASoC: Convert pxa directory to module_platform_driver
Factor out some boilerplate code.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa/mioa701_wm9713.c')
-rw-r--r-- | sound/soc/pxa/mioa701_wm9713.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/pxa/mioa701_wm9713.c b/sound/soc/pxa/mioa701_wm9713.c index 0b8d1ee738a4..0e73a7f718e4 100644 --- a/sound/soc/pxa/mioa701_wm9713.c +++ b/sound/soc/pxa/mioa701_wm9713.c | |||
@@ -227,18 +227,7 @@ static struct platform_driver mioa701_wm9713_driver = { | |||
227 | }, | 227 | }, |
228 | }; | 228 | }; |
229 | 229 | ||
230 | static int __init mioa701_asoc_init(void) | 230 | module_platform_driver(mioa701_wm9713_driver); |
231 | { | ||
232 | return platform_driver_register(&mioa701_wm9713_driver); | ||
233 | } | ||
234 | |||
235 | static void __exit mioa701_asoc_exit(void) | ||
236 | { | ||
237 | platform_driver_unregister(&mioa701_wm9713_driver); | ||
238 | } | ||
239 | |||
240 | module_init(mioa701_asoc_init); | ||
241 | module_exit(mioa701_asoc_exit); | ||
242 | 231 | ||
243 | /* Module information */ | 232 | /* Module information */ |
244 | MODULE_AUTHOR("Robert Jarzmik (rjarzmik@free.fr)"); | 233 | MODULE_AUTHOR("Robert Jarzmik (rjarzmik@free.fr)"); |