diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 12:14:56 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-24 10:45:14 +0000 |
commit | 880dd7210cd04205c6584922ad16b2d5731ab2c0 (patch) | |
tree | 15e25faa8c2af3a4323cde23513298b6e5482f94 /sound/soc/s6000/s6000-i2s.c | |
parent | ee18f6314fa16376d53c29ecf9704011f2ce8180 (diff) | |
download | linux-3.10-880dd7210cd04205c6584922ad16b2d5731ab2c0.tar.gz linux-3.10-880dd7210cd04205c6584922ad16b2d5731ab2c0.tar.bz2 linux-3.10-880dd7210cd04205c6584922ad16b2d5731ab2c0.zip |
ASoC: Convert s6000 directory to module_platform_driver
Factor out some boilerplate code.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Daniel Glöckner <dg@emlix.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/s6000/s6000-i2s.c')
-rw-r--r-- | sound/soc/s6000/s6000-i2s.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/s6000/s6000-i2s.c b/sound/soc/s6000/s6000-i2s.c index 13716a9317f..aaabdbaec19 100644 --- a/sound/soc/s6000/s6000-i2s.c +++ b/sound/soc/s6000/s6000-i2s.c @@ -604,17 +604,7 @@ static struct platform_driver s6000_i2s_driver = { }, }; -static int __init s6000_i2s_init(void) -{ - return platform_driver_register(&s6000_i2s_driver); -} -module_init(s6000_i2s_init); - -static void __exit s6000_i2s_exit(void) -{ - platform_driver_unregister(&s6000_i2s_driver); -} -module_exit(s6000_i2s_exit); +module_platform_driver(s6000_i2s_driver); MODULE_AUTHOR("Daniel Gloeckner"); MODULE_DESCRIPTION("Stretch s6000 family I2S SoC Interface"); |