mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 07:46:44 +07:00
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 <peter.ujfalusi@nokia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
cb1ace04d7
commit
c6d1662b22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user