Skip to contentSkip to conversation

ASoC: Make SMDK WM8580 driver unloadable

PATCH In review Mark Brown 3 participants 3 messages Nov 24, 2010 – Nov 25, 2010

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Make SMDK WM8580 driver unloadable

Supply a module exit function so that the driver can be unloaded.

---
 sound/soc/samsung/smdk_wm8580.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
sound/soc/samsung/smdk_wm8580.c +6 -0
index 0ae3d57..e2d56b9 100644
@@ -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, [email protected]");
 MODULE_DESCRIPTION("ALSA SoC SMDK WM8580");
 MODULE_LICENSE("GPL");
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#2 lore raw
In reply to Mark Brown
Quoted 14 lines · Mark Brown

Supply a module exit function so that the driver can be unloaded.

---
 sound/soc/samsung/smdk_wm8580.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
sound/soc/samsung/smdk_wm8580.c +0 -0
index 0ae3d57..e2d56b9 100644
@@ -280,6 +280,12 @@ static int __init smdk_audio_init(void)
 }
 module_init(smdk_audio_init);

sound/soc/samsung/smdk_wm8580.c static int __init smdk_audio_init(void) · line 291

Quoted 10 lines
sound/soc/samsung/smdk_wm8580.c +6 -0
 
+static void __exit smdk_audio_exit(void)
+{
+	platform_device_unregister(smdk_snd_device);
+}
+module_exit(smdk_audio_exit);
+
 MODULE_AUTHOR("Jaswinder Singh, [email protected]");
 MODULE_DESCRIPTION("ALSA SoC SMDK WM8580");
 MODULE_LICENSE("GPL");
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk