Skip to content

Commit

Permalink
ASoC: cs35l32: Remove unneeded regulator_bulk_free call in cs35l32_i2…
Browse files Browse the repository at this point in the history
…c_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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 28, 2014
1 parent 7eef085 commit 1a83269
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/codecs/cs35l32.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,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;
}

Expand Down

0 comments on commit 1a83269

Please sign in to comment.