2013-09-27 08:15:59

by Wei Yongjun

[permalink] [raw]
Subject: [PATCH] ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data

From: Wei Yongjun <[email protected]>

It's not necessary to free regulator consumers allocated with
devm_regulator_bulk_get.

Signed-off-by: Wei Yongjun <[email protected]>
---
sound/soc/codecs/wm8993.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c
index 433d59a..2ee23a3 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;
}


2013-09-27 09:49:18

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data

On Fri, Sep 27, 2013 at 04:15:54PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <[email protected]>
>
> It's not necessary to free regulator consumers allocated with
> devm_regulator_bulk_get.

Applied, thanks.


Attachments:
(No filename) (225.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments