diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-08-28 05:55:20 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-28 14:07:15 -0400 |
commit | a4f87cea72d78f80c0bda1b4d8a821278eb1e4e2 (patch) | |
tree | 6b6355541a9438c89a5aebc231c6372521554bcf /sound/soc/codecs/cs42l56.c | |
parent | c2b49ae678b8bd1fd4ea3e3ae106020d663e8969 (diff) |
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 <axel.lin@ingics.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/cs42l56.c')
-rw-r--r-- | sound/soc/codecs/cs42l56.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c index b1c7396c80c8..bb74dd17fa26 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) | |||
1175 | 1175 | ||
1176 | static int cs42l56_remove(struct snd_soc_codec *codec) | 1176 | static int cs42l56_remove(struct snd_soc_codec *codec) |
1177 | { | 1177 | { |
1178 | struct cs42l56_private *cs42l56 = snd_soc_codec_get_drvdata(codec); | ||
1179 | |||
1180 | cs42l56_free_beep(codec); | 1178 | cs42l56_free_beep(codec); |
1181 | cs42l56_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1179 | cs42l56_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1182 | regulator_bulk_free(ARRAY_SIZE(cs42l56->supplies), cs42l56->supplies); | ||
1183 | 1180 | ||
1184 | return 0; | 1181 | return 0; |
1185 | } | 1182 | } |