From: Wei Yongjun Date: Fri, 27 Sep 2013 08:15:54 +0000 (+0800) Subject: ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data X-Git-Tag: v3.14-rc4~19^2~1^2^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=88b5bdfda886e9774b03f02ffe4295be124124f6;p=~emulex%2Finfiniband.git ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data It's not necessary to free regulator consumers allocated with devm_regulator_bulk_get. Signed-off-by: Wei Yongjun Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index 433d59a0f3e..2ee23a39622 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c @@ -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; }