diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 12:07:55 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-24 10:43:59 +0000 |
commit | ee18f6314fa16376d53c29ecf9704011f2ce8180 (patch) | |
tree | da5f090065b5b31fe74f349cdb62c335d79faf66 /sound/soc/ep93xx/simone.c | |
parent | 45f3121615b2b354f7d95d30f795bc5fe0043e92 (diff) | |
download | op-kernel-dev-ee18f6314fa16376d53c29ecf9704011f2ce8180.zip op-kernel-dev-ee18f6314fa16376d53c29ecf9704011f2ce8180.tar.gz |
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/simone.c')
-rw-r--r-- | sound/soc/ep93xx/simone.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/ep93xx/simone.c b/sound/soc/ep93xx/simone.c index 968cb31..1e00b33 100644 --- a/sound/soc/ep93xx/simone.c +++ b/sound/soc/ep93xx/simone.c @@ -81,17 +81,7 @@ static struct platform_driver simone_driver = { .remove = __devexit_p(simone_remove), }; -static int __init simone_init(void) -{ - return platform_driver_register(&simone_driver); -} -module_init(simone_init); - -static void __exit simone_exit(void) -{ - platform_driver_unregister(&simone_driver); -} -module_exit(simone_exit); +module_platform_driver(simone_driver); MODULE_DESCRIPTION("ALSA SoC Simplemachines Sim.One"); MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>"); |