diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-28 05:53:57 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-29 06:34:05 -0500 |
commit | 1175f71197140dfdb8ad31767030175d88cbea2b (patch) | |
tree | a1d8468094b65fa81cbf9fa5d62b245d4b661048 /sound/soc/samsung/smdk_wm8994pcm.c | |
parent | fd8f2e496f38264a64c0cc7948217659019a9e8a (diff) |
ASoC: Convert smdk_wm8994pcm to use module_platform_driver()
Use the module_platform_driver() macro which makes
the code smaller and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/samsung/smdk_wm8994pcm.c')
-rw-r--r-- | sound/soc/samsung/smdk_wm8994pcm.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sound/soc/samsung/smdk_wm8994pcm.c b/sound/soc/samsung/smdk_wm8994pcm.c index da9c2a264d93..23c7fb71ddfa 100644 --- a/sound/soc/samsung/smdk_wm8994pcm.c +++ b/sound/soc/samsung/smdk_wm8994pcm.c | |||
@@ -158,19 +158,7 @@ static struct platform_driver snd_smdk_driver = { | |||
158 | .remove = __devexit_p(snd_smdk_remove), | 158 | .remove = __devexit_p(snd_smdk_remove), |
159 | }; | 159 | }; |
160 | 160 | ||
161 | static int __init smdk_audio_init(void) | 161 | module_platform_driver(snd_smdk_driver); |
162 | { | ||
163 | return platform_driver_register(&snd_smdk_driver); | ||
164 | } | ||
165 | |||
166 | module_init(smdk_audio_init); | ||
167 | |||
168 | static void __exit smdk_audio_exit(void) | ||
169 | { | ||
170 | platform_driver_unregister(&snd_smdk_driver); | ||
171 | } | ||
172 | |||
173 | module_exit(smdk_audio_exit); | ||
174 | 162 | ||
175 | MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>"); | 163 | MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>"); |
176 | MODULE_DESCRIPTION("ALSA SoC SMDK WM8994 for PCM"); | 164 | MODULE_DESCRIPTION("ALSA SoC SMDK WM8994 for PCM"); |