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/hx4700.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/hx4700.c')
-rw-r--r-- | sound/soc/pxa/hx4700.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/pxa/hx4700.c b/sound/soc/pxa/hx4700.c index 65c124831a00..e32afaf1ebbb 100644 --- a/sound/soc/pxa/hx4700.c +++ b/sound/soc/pxa/hx4700.c | |||
@@ -236,18 +236,7 @@ static struct platform_driver hx4700_audio_driver = { | |||
236 | .remove = __devexit_p(hx4700_audio_remove), | 236 | .remove = __devexit_p(hx4700_audio_remove), |
237 | }; | 237 | }; |
238 | 238 | ||
239 | static int __init hx4700_modinit(void) | 239 | module_platform_driver(hx4700_audio_driver); |
240 | { | ||
241 | return platform_driver_register(&hx4700_audio_driver); | ||
242 | } | ||
243 | module_init(hx4700_modinit); | ||
244 | |||
245 | static void __exit hx4700_modexit(void) | ||
246 | { | ||
247 | platform_driver_unregister(&hx4700_audio_driver); | ||
248 | } | ||
249 | |||
250 | module_exit(hx4700_modexit); | ||
251 | 240 | ||
252 | MODULE_AUTHOR("Philipp Zabel"); | 241 | MODULE_AUTHOR("Philipp Zabel"); |
253 | MODULE_DESCRIPTION("ALSA SoC iPAQ hx4700"); | 242 | MODULE_DESCRIPTION("ALSA SoC iPAQ hx4700"); |