diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 10:20:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 08:03:03 -0500 |
commit | e00c3f555f1f404b38d44bcfe19db674a92c809a (patch) | |
tree | be5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung/i2s.c | |
parent | 29515d62db425796d82e2e2d9209a44b9e324ff4 (diff) |
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/i2s.c')
-rw-r--r-- | sound/soc/samsung/i2s.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 03ee8ce46a29..fb80f2886c70 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
@@ -1144,17 +1144,7 @@ static struct platform_driver samsung_i2s_driver = { | |||
1144 | }, | 1144 | }, |
1145 | }; | 1145 | }; |
1146 | 1146 | ||
1147 | static int __init samsung_i2s_init(void) | 1147 | module_platform_driver(samsung_i2s_driver); |
1148 | { | ||
1149 | return platform_driver_register(&samsung_i2s_driver); | ||
1150 | } | ||
1151 | module_init(samsung_i2s_init); | ||
1152 | |||
1153 | static void __exit samsung_i2s_exit(void) | ||
1154 | { | ||
1155 | platform_driver_unregister(&samsung_i2s_driver); | ||
1156 | } | ||
1157 | module_exit(samsung_i2s_exit); | ||
1158 | 1148 | ||
1159 | /* Module information */ | 1149 | /* Module information */ |
1160 | MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); | 1150 | MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); |