From: Tushar Behera Date: Thu, 22 Nov 2012 04:08:33 +0000 (+0530) Subject: ASoC: wm8510: remove invalid free of devm_ allocated data X-Git-Tag: firefly_0821_release~3680^2~1370^2~5^2~48^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9a58dc2268e7a2009e569c2e78e0feb72d6674e4;p=firefly-linux-kernel-4.4.55.git ASoC: wm8510: remove invalid free of devm_ allocated data Fixes following warning. sound/soc/codecs/wm8510.c:614:1-6: WARNING: invalid free of devm_ allocated data Signed-off-by: Tushar Behera Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c index c12a54e72e89..923e7e1f6704 100644 --- a/sound/soc/codecs/wm8510.c +++ b/sound/soc/codecs/wm8510.c @@ -608,10 +608,7 @@ static int wm8510_probe(struct snd_soc_codec *codec) /* power down chip */ static int wm8510_remove(struct snd_soc_codec *codec) { - struct wm8510_priv *wm8510 = snd_soc_codec_get_drvdata(codec); - wm8510_set_bias_level(codec, SND_SOC_BIAS_OFF); - kfree(wm8510); return 0; }