From: Mark Brown <broonie@opensource.wolfsonmicro.com>
Date: Mon, 1 Dec 2008 17:59:25 +0000 (+0000)
Subject: ASoC: Don't free static data in WM9713
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ecfe7987855d21c2a89ffe003ddf0ee11b42d47;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git

ASoC: Don't free static data in WM9713

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---

diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c
index 49962a88770d..f3ca8aaf0139 100644
--- a/sound/soc/codecs/wm9713.c
+++ b/sound/soc/codecs/wm9713.c
@@ -1283,7 +1283,6 @@ static int wm9713_soc_remove(struct platform_device *pdev)
 	snd_soc_free_ac97_codec(codec);
 	kfree(codec->private_data);
 	kfree(codec->reg_cache);
-	kfree(codec->dai);
 	kfree(codec);
 	return 0;
 }