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/lowland.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/lowland.c')
-rw-r--r-- | sound/soc/samsung/lowland.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/samsung/lowland.c b/sound/soc/samsung/lowland.c index eff1b4b65df4..4216a06b45f5 100644 --- a/sound/soc/samsung/lowland.c +++ b/sound/soc/samsung/lowland.c | |||
@@ -228,17 +228,7 @@ static struct platform_driver lowland_driver = { | |||
228 | .remove = __devexit_p(lowland_remove), | 228 | .remove = __devexit_p(lowland_remove), |
229 | }; | 229 | }; |
230 | 230 | ||
231 | static int __init lowland_audio_init(void) | 231 | module_platform_driver(lowland_driver); |
232 | { | ||
233 | return platform_driver_register(&lowland_driver); | ||
234 | } | ||
235 | module_init(lowland_audio_init); | ||
236 | |||
237 | static void __exit lowland_audio_exit(void) | ||
238 | { | ||
239 | platform_driver_unregister(&lowland_driver); | ||
240 | } | ||
241 | module_exit(lowland_audio_exit); | ||
242 | 232 | ||
243 | MODULE_DESCRIPTION("Lowland audio support"); | 233 | MODULE_DESCRIPTION("Lowland audio support"); |
244 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); | 234 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); |