[alsa-devel] [PATCH] 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 --- 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 0ae3d57..e2d56b9 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");
On Thu, Nov 25, 2010 at 2:20 AM, Mark Brown broonie@opensource.wolfsonmicro.com wrote:
Supply a module exit function so that the driver can be unloaded.
Acked-by: Jassi Brar jassi.brar@samsung.com
On Wed, 2010-11-24 at 17:20 +0000, Mark Brown wrote:
Supply a module exit function so that the driver can be unloaded.
Signed-off-by: Mark Brown broonie@opensource.wolfsonmicro.com
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 0ae3d57..e2d56b9 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");
Acked-by: Liam Girdwood lrg@slimlogic.co.uk
participants (3)
-
Jassi Brar
-
Liam Girdwood
-
Mark Brown