From: Axel Lin Date: Thu, 28 Aug 2014 09:55:20 +0000 (+0800) Subject: ASoC: cs42l56: Remove unneeded regulator_bulk_free call in cs42l56_remove X-Git-Tag: v4.9.8~5095^2~90^2~7^4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4f87cea72d78f80c0bda1b4d8a821278eb1e4e2;p=platform%2Fkernel%2Flinux-rpi3.git ASoC: cs42l56: Remove unneeded regulator_bulk_free call in cs42l56_remove The regulator_bulk_free() call is not required because current code is using devm_regulator_bulk_get(). Signed-off-by: Axel Lin Acked-by: Brian Austin Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c index b1c7396..bb74dd1 100644 --- a/sound/soc/codecs/cs42l56.c +++ b/sound/soc/codecs/cs42l56.c @@ -1175,11 +1175,8 @@ static int cs42l56_probe(struct snd_soc_codec *codec) static int cs42l56_remove(struct snd_soc_codec *codec) { - struct cs42l56_private *cs42l56 = snd_soc_codec_get_drvdata(codec); - cs42l56_free_beep(codec); cs42l56_set_bias_level(codec, SND_SOC_BIAS_OFF); - regulator_bulk_free(ARRAY_SIZE(cs42l56->supplies), cs42l56->supplies); return 0; }