diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-25 10:13:37 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 13:15:16 +0000 |
commit | 2f702a19154ddbd294825c0588593e1eef10b1e2 (patch) | |
tree | 55c940af293dbe308420924c0df88c8c2b7af647 /sound/soc/pxa/hx4700.c | |
parent | 8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0 (diff) | |
download | op-kernel-dev-2f702a19154ddbd294825c0588593e1eef10b1e2.zip op-kernel-dev-2f702a19154ddbd294825c0588593e1eef10b1e2.tar.gz |
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 65c1248..e32afaf 100644 --- a/sound/soc/pxa/hx4700.c +++ b/sound/soc/pxa/hx4700.c @@ -236,18 +236,7 @@ static struct platform_driver hx4700_audio_driver = { .remove = __devexit_p(hx4700_audio_remove), }; -static int __init hx4700_modinit(void) -{ - return platform_driver_register(&hx4700_audio_driver); -} -module_init(hx4700_modinit); - -static void __exit hx4700_modexit(void) -{ - platform_driver_unregister(&hx4700_audio_driver); -} - -module_exit(hx4700_modexit); +module_platform_driver(hx4700_audio_driver); MODULE_AUTHOR("Philipp Zabel"); MODULE_DESCRIPTION("ALSA SoC iPAQ hx4700"); |