From: Peter Ujfalusi Date: Thu, 8 Jan 2009 13:52:43 +0000 (+0200) Subject: ASoC: TWL4030: Module unloading fix X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c6d1662b229410e64092fe3a9caed6535fb3dc65;p=linux-beck.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index db24f833c168..ea370a4f86d5 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c @@ -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;