From: Mark Brown Date: Wed, 24 Nov 2010 17:18:45 +0000 (+0000) Subject: ASoC: Make SMDK WM8580 driver unloadable X-Git-Tag: MMI-PSA29.97-13-9~16612^2~1226^2~243 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38533698dc14e739eefb22cf66c048e3c9264313;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: Make SMDK WM8580 driver unloadable Supply a module exit function so that the driver can be unloaded. Signed-off-by: Mark Brown Acked-by: Jassi Brar Acked-by: Liam Girdwood --- 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) } module_init(smdk_audio_init); +static void __exit smdk_audio_exit(void) +{ + platform_device_unregister(smdk_snd_device); +} +module_exit(smdk_audio_exit); + MODULE_AUTHOR("Jaswinder Singh, jassi.brar@samsung.com"); MODULE_DESCRIPTION("ALSA SoC SMDK WM8580"); MODULE_LICENSE("GPL");