diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 19:20:13 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 17:03:03 +0400 |
commit | e00c3f555f1f404b38d44bcfe19db674a92c809a (patch) | |
tree | be5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung/s3c24xx-i2s.c | |
parent | 29515d62db425796d82e2e2d9209a44b9e324ff4 (diff) | |
download | linux-e00c3f555f1f404b38d44bcfe19db674a92c809a.tar.xz |
ASoC: Convert Samsung directory to module_platform_driver
Saves some boilerplate code.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Diffstat (limited to 'sound/soc/samsung/s3c24xx-i2s.c')
-rw-r--r-- | sound/soc/samsung/s3c24xx-i2s.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c index 2a98bed2db02..c4aa4d412fbf 100644 --- a/sound/soc/samsung/s3c24xx-i2s.c +++ b/sound/soc/samsung/s3c24xx-i2s.c @@ -489,17 +489,7 @@ static struct platform_driver s3c24xx_iis_driver = { }, }; -static int __init s3c24xx_i2s_init(void) -{ - return platform_driver_register(&s3c24xx_iis_driver); -} -module_init(s3c24xx_i2s_init); - -static void __exit s3c24xx_i2s_exit(void) -{ - platform_driver_unregister(&s3c24xx_iis_driver); -} -module_exit(s3c24xx_i2s_exit); +module_platform_driver(s3c24xx_iis_driver); /* Module information */ MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |