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/pxa2xx-ac97.c | |
parent | 8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0 (diff) | |
download | kernel_goldelico_gta04-2f702a19154ddbd294825c0588593e1eef10b1e2.zip kernel_goldelico_gta04-2f702a19154ddbd294825c0588593e1eef10b1e2.tar.gz kernel_goldelico_gta04-2f702a19154ddbd294825c0588593e1eef10b1e2.tar.bz2 |
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/pxa2xx-ac97.c')
-rw-r--r-- | sound/soc/pxa/pxa2xx-ac97.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c index 3fec2f3..837ff34 100644 --- a/sound/soc/pxa/pxa2xx-ac97.c +++ b/sound/soc/pxa/pxa2xx-ac97.c @@ -263,17 +263,7 @@ static struct platform_driver pxa2xx_ac97_driver = { }, }; -static int __init pxa_ac97_init(void) -{ - return platform_driver_register(&pxa2xx_ac97_driver); -} -module_init(pxa_ac97_init); - -static void __exit pxa_ac97_exit(void) -{ - platform_driver_unregister(&pxa2xx_ac97_driver); -} -module_exit(pxa_ac97_exit); +module_platform_driver(pxa2xx_ac97_driver); MODULE_AUTHOR("Nicolas Pitre"); MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip"); |