diff mbox

[2/2] ASoC: cs42l56: Remove unneeded regulator_bulk_free call in cs42l56_remove

Message ID 1409219720.21395.5.camel@phoenix (mailing list archive)
State Accepted
Commit a4f87cea72d78f80c0bda1b4d8a821278eb1e4e2
Headers show

Commit Message

Axel Lin Aug. 28, 2014, 9:55 a.m. UTC
The regulator_bulk_free() call is not required because current code is using
devm_regulator_bulk_get().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/cs42l56.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Austin, Brian Aug. 28, 2014, 2:08 p.m. UTC | #1
On Thu, 28 Aug 2014, Axel Lin wrote:

> The regulator_bulk_free() call is not required because current code is using
> devm_regulator_bulk_get().
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  sound/soc/codecs/cs42l56.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c
> index c766a5a..5a2d732 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;
>  }
Thanks Axel,

For the series..

Acked-by: Brian Austin <brian.austin@cirrus.com>
diff mbox

Patch

diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c
index c766a5a..5a2d732 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;
 }