ASoC: TWL4030: Module unloading fix
PATCH 3/3 ASoC: TWL4030: Module unloading fix
Call the snd_soc_free_pcm and snd_soc_dapm_free when the codec driver is unloaded.
Signed-off-by Peter Ujfalusi <[email protected]>
--- sound/soc/codecs/twl4030.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/codecs/twl4030.c +2 -0
@@ -1280,6 +1280,8 @@ static int twl4030_remove(struct platform_device *pdev)struct snd_soc_codec *codec = socdev->codec;printk (KERN_INFO "TWL4030 Audio Codec remove\n" ); +snd_soc_free_pcms (socdev); +snd_soc_dapm_free (socdev);kfree (codec);return 0 ;
Signature · 1 line
1.6.1
Mark Brown
AppliedQuoted 4 lines · Peter Ujfalusi
Call the
snd_soc_free_pcmandsnd_soc_dapm_freewhen the codec driver is unloaded.Signed-off-by Peter Ujfalusi <[email protected]>
Applied, thanks. Might be worth having a look at the logging too...