diff options
author | Mark Brown <broonie@sirena.org.uk> | 2013-04-28 02:13:37 +0100 |
---|---|---|
committer | Mark Brown <broonie@sirena.org.uk> | 2013-04-28 02:13:37 +0100 |
commit | 0e340ce1ddcf41ca435ef695ef004a6f587c749e (patch) | |
tree | 9f4cc87138ecf29762e1037a8c028c6ddd3ebc03 /drivers/regulator/tps6524x-regulator.c | |
parent | 97844ede9487fc7c4689ce1499bbaa10312618be (diff) | |
parent | 020501f1a0911af70873e4d3d122b2e1889ccd03 (diff) | |
download | talos-obmc-linux-0e340ce1ddcf41ca435ef695ef004a6f587c749e.tar.gz talos-obmc-linux-0e340ce1ddcf41ca435ef695ef004a6f587c749e.zip |
Merge remote-tracking branch 'regulator/topic/core' into v3.9-rc8
Diffstat (limited to 'drivers/regulator/tps6524x-regulator.c')
-rw-r--r-- | drivers/regulator/tps6524x-regulator.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c index 18b67d28d60b..1094393155ed 100644 --- a/drivers/regulator/tps6524x-regulator.c +++ b/drivers/regulator/tps6524x-regulator.c @@ -585,8 +585,7 @@ static int pmic_remove(struct spi_device *spi) if (!hw) return 0; for (i = 0; i < N_REGULATORS; i++) { - if (hw->rdev[i]) - regulator_unregister(hw->rdev[i]); + regulator_unregister(hw->rdev[i]); hw->rdev[i] = NULL; } spi_set_drvdata(spi, NULL); |