ASoC: wm8510: remove invalid free of devm_ allocated data
authorTushar Behera <tushar.behera@linaro.org>
Thu, 22 Nov 2012 04:08:33 +0000 (09:38 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 23 Nov 2012 14:28:45 +0000 (23:28 +0900)
Fixes following warning.
sound/soc/codecs/wm8510.c:614:1-6: WARNING: invalid free of devm_ allocated data

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8510.c

index c12a54e72e891d071a51e2c4d069c006c6a9ff18..923e7e1f670422057e140841665949bc66a68c0d 100644 (file)
@@ -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;
 }