Skip to content

Commit

Permalink
ASoC: cs42l56: Remove unneeded regulator_bulk_free call in cs42l56_re…
Browse files Browse the repository at this point in the history
…move

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>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 28, 2014
1 parent c2b49ae commit a4f87ce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/codecs/cs42l56.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a4f87ce

Please sign in to comment.