summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6524x-regulator.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-20 09:45:35 +0530
committerMark Brown <broonie@linaro.org>2013-09-20 10:49:34 +0100
commit78925b3a791b3ad485fe56d0b8951a5d043b7cae (patch)
treec5beff683896d15b126a245b0be1277f1ab21fe6 /drivers/regulator/tps6524x-regulator.c
parent272b98c6455f00884f0350f775c5342358ebb73f (diff)
downloadlinux-78925b3a791b3ad485fe56d0b8951a5d043b7cae.tar.gz
linux-78925b3a791b3ad485fe56d0b8951a5d043b7cae.tar.bz2
linux-78925b3a791b3ad485fe56d0b8951a5d043b7cae.zip
regulator: tps6524x: Remove redundant spi_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/tps6524x-regulator.c')
-rw-r--r--drivers/regulator/tps6524x-regulator.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c
index 62e8d28beabd..8b9ee3983a6c 100644
--- a/drivers/regulator/tps6524x-regulator.c
+++ b/drivers/regulator/tps6524x-regulator.c
@@ -588,7 +588,6 @@ static int pmic_remove(struct spi_device *spi)
regulator_unregister(hw->rdev[i]);
hw->rdev[i] = NULL;
}
- spi_set_drvdata(spi, NULL);
return 0;
}