Skip to content

Commit

Permalink
ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data
Browse files Browse the repository at this point in the history
It's not necessary to free regulator consumers allocated with
devm_regulator_bulk_get.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Wei Yongjun authored and Mark Brown committed Sep 27, 2013
1 parent 4a10c2a commit 88b5bdf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/codecs/wm8993.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,6 @@ static int wm8993_remove(struct snd_soc_codec *codec)
struct wm8993_priv *wm8993 = snd_soc_codec_get_drvdata(codec);

wm8993_set_bias_level(codec, SND_SOC_BIAS_OFF);
regulator_bulk_free(ARRAY_SIZE(wm8993->supplies), wm8993->supplies);
return 0;
}

Expand Down

0 comments on commit 88b5bdf

Please sign in to comment.