summaryrefslogtreecommitdiff
path: root/sound/soc/samsung/s3c24xx_uda134x.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 19:20:13 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 17:03:03 +0400
commite00c3f555f1f404b38d44bcfe19db674a92c809a (patch)
treebe5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung/s3c24xx_uda134x.c
parent29515d62db425796d82e2e2d9209a44b9e324ff4 (diff)
downloadlinux-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_uda134x.c')
-rw-r--r--sound/soc/samsung/s3c24xx_uda134x.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c
index 548c6ac6e7b0..62b69fb6a085 100644
--- a/sound/soc/samsung/s3c24xx_uda134x.c
+++ b/sound/soc/samsung/s3c24xx_uda134x.c
@@ -343,19 +343,7 @@ static struct platform_driver s3c24xx_uda134x_driver = {
},
};
-static int __init s3c24xx_uda134x_init(void)
-{
- return platform_driver_register(&s3c24xx_uda134x_driver);
-}
-
-static void __exit s3c24xx_uda134x_exit(void)
-{
- platform_driver_unregister(&s3c24xx_uda134x_driver);
-}
-
-
-module_init(s3c24xx_uda134x_init);
-module_exit(s3c24xx_uda134x_exit);
+module_platform_driver(s3c24xx_uda134x_driver);
MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>");
MODULE_DESCRIPTION("S3C24XX_UDA134X ALSA SoC audio driver");