summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/lowland.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 16:20:13 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 14:03:03 +0100
commite00c3f555f1f404b38d44bcfe19db674a92c809a (patch)
treebe5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung/lowland.c
parentASoC: Convert mid-x86 directory to module_platform_driver (diff)
downloadlinux-e00c3f555f1f404b38d44bcfe19db674a92c809a.tar.xz
linux-e00c3f555f1f404b38d44bcfe19db674a92c809a.zip
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.c12
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 = {
.remove = __devexit_p(lowland_remove),
};
-static int __init lowland_audio_init(void)
-{
- return platform_driver_register(&lowland_driver);
-}
-module_init(lowland_audio_init);
-
-static void __exit lowland_audio_exit(void)
-{
- platform_driver_unregister(&lowland_driver);
-}
-module_exit(lowland_audio_exit);
+module_platform_driver(lowland_driver);
MODULE_DESCRIPTION("Lowland audio support");
MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");