summaryrefslogtreecommitdiff
path: root/sound/soc/samsung/smdk_wm8580pcm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 15:20:13 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 13:03:03 +0000
commite00c3f555f1f404b38d44bcfe19db674a92c809a (patch)
treebe5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung/smdk_wm8580pcm.c
parent29515d62db425796d82e2e2d9209a44b9e324ff4 (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/smdk_wm8580pcm.c')
-rw-r--r--sound/soc/samsung/smdk_wm8580pcm.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sound/soc/samsung/smdk_wm8580pcm.c b/sound/soc/samsung/smdk_wm8580pcm.c
index 0677473e6b60..49dfafbf3df6 100644
--- a/sound/soc/samsung/smdk_wm8580pcm.c
+++ b/sound/soc/samsung/smdk_wm8580pcm.c
@@ -188,19 +188,7 @@ static struct platform_driver snd_smdk_driver = {
.remove = __devexit_p(snd_smdk_remove),
};
-static int __init smdk_audio_init(void)
-{
- return platform_driver_register(&snd_smdk_driver);
-}
-
-module_init(smdk_audio_init);
-
-static void __exit smdk_audio_exit(void)
-{
- platform_driver_unregister(&snd_smdk_driver);
-}
-
-module_exit(smdk_audio_exit);
+module_platform_driver(snd_smdk_driver);
MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>");
MODULE_DESCRIPTION("ALSA SoC SMDK WM8580 for PCM");