diff mbox

[1/2] ASoC: cs35l32: Remove unneeded regulator_bulk_free call in cs35l32_i2c_remove

Message ID 1409219678.21395.4.camel@phoenix (mailing list archive)
State Accepted
Commit 1a83269d5c41b77f2a4bbb3828c668c96832742e
Headers show

Commit Message

Axel Lin Aug. 28, 2014, 9:54 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/cs35l32.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Mark Brown Aug. 28, 2014, 6:07 p.m. UTC | #1
On Thu, Aug 28, 2014 at 05:54:38PM +0800, Axel Lin wrote:
> The regulator_bulk_free() call is not required because current code is using
> devm_regulator_bulk_get().

Applied both, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c
index 380c212..718569f 100644
--- a/sound/soc/codecs/cs35l32.c
+++ b/sound/soc/codecs/cs35l32.c
@@ -548,8 +548,6 @@  static int cs35l32_i2c_remove(struct i2c_client *i2c_client)
 	if (cs35l32->reset_gpio)
 		gpiod_set_value_cansleep(cs35l32->reset_gpio, 0);
 
-	regulator_bulk_free(ARRAY_SIZE(cs35l32->supplies), cs35l32->supplies);
-
 	return 0;
 }