diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-24 12:18:45 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-25 06:17:48 -0500 |
commit | 38533698dc14e739eefb22cf66c048e3c9264313 (patch) | |
tree | d9247bba1da4868ea3d43ed718d73de0ddaff0ea /sound/soc/samsung | |
parent | 2c54c1586c78775cfdfb071e68b27e14b668921f (diff) |
ASoC: Make SMDK WM8580 driver unloadable
Supply a module exit function so that the driver can be unloaded.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r-- | sound/soc/samsung/smdk_wm8580.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/samsung/smdk_wm8580.c b/sound/soc/samsung/smdk_wm8580.c index 0ae3d57d79e6..e2d56b9bac5a 100644 --- a/sound/soc/samsung/smdk_wm8580.c +++ b/sound/soc/samsung/smdk_wm8580.c | |||
@@ -280,6 +280,12 @@ static int __init smdk_audio_init(void) | |||
280 | } | 280 | } |
281 | module_init(smdk_audio_init); | 281 | module_init(smdk_audio_init); |
282 | 282 | ||
283 | static void __exit smdk_audio_exit(void) | ||
284 | { | ||
285 | platform_device_unregister(smdk_snd_device); | ||
286 | } | ||
287 | module_exit(smdk_audio_exit); | ||
288 | |||
283 | MODULE_AUTHOR("Jaswinder Singh, jassi.brar@samsung.com"); | 289 | MODULE_AUTHOR("Jaswinder Singh, jassi.brar@samsung.com"); |
284 | MODULE_DESCRIPTION("ALSA SoC SMDK WM8580"); | 290 | MODULE_DESCRIPTION("ALSA SoC SMDK WM8580"); |
285 | MODULE_LICENSE("GPL"); | 291 | MODULE_LICENSE("GPL"); |