Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88b5bdfd authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 4a10c2ac
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}