]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 27 Sep 2013 08:15:54 +0000 (16:15 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 27 Sep 2013 09:47:14 +0000 (10:47 +0100)
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>
sound/soc/codecs/wm8993.c

index 433d59a0f3efa025598cf5c63f42640120893f90..2ee23a39622c14f2cdbc072cdcdb496e8291e9c0 100644 (file)
@@ -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;
 }