Skip to content

Commit

Permalink
ASoC: wm8510: remove invalid free of devm_ allocated data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tushar Behera authored and Mark Brown committed Nov 23, 2012
1 parent f4a75d2 commit 9a58dc2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/codecs/wm8510.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9a58dc2

Please sign in to comment.