diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 16:20:13 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 14:03:03 +0100 |
commit | e00c3f555f1f404b38d44bcfe19db674a92c809a (patch) | |
tree | be5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung/spdif.c | |
parent | ASoC: Convert mid-x86 directory to module_platform_driver (diff) | |
download | linux-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/spdif.c')
-rw-r--r-- | sound/soc/samsung/spdif.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/samsung/spdif.c b/sound/soc/samsung/spdif.c index a1fee1a414c9..a5a56a120345 100644 --- a/sound/soc/samsung/spdif.c +++ b/sound/soc/samsung/spdif.c @@ -483,17 +483,7 @@ static struct platform_driver samsung_spdif_driver = { }, }; -static int __init spdif_init(void) -{ - return platform_driver_register(&samsung_spdif_driver); -} -module_init(spdif_init); - -static void __exit spdif_exit(void) -{ - platform_driver_unregister(&samsung_spdif_driver); -} -module_exit(spdif_exit); +module_platform_driver(samsung_spdif_driver); MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>"); MODULE_DESCRIPTION("Samsung S/PDIF Controller Driver"); |