ASoC: Make SMDK WM8580 driver unloadable
Subsystems (3)
PATCH 1/1 ASoC: Make SMDK WM8580 driver unloadable
Supply a module exit function so that the driver can be unloaded.
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/samsung/smdk_wm8580.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
sound/soc/samsung/smdk_wm8580.c +6 -0
@@ -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
Quoted 1 line · Mark Brown
Supply a module exit function so that the driver can be unloaded.
Acked-by Jassi Brar <[email protected]>
Quoted 14 lines · Mark Brown
Supply a module exit function so that the driver can be unloaded.
Signed-off-by Mark Brown <[email protected]>--- sound/soc/samsung/smdk_wm8580.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)sound/soc/samsung/smdk_wm8580.c +0
-0@@ -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" );
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk