diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 09:45:35 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-20 10:49:34 +0100 |
commit | 78925b3a791b3ad485fe56d0b8951a5d043b7cae (patch) | |
tree | c5beff683896d15b126a245b0be1277f1ab21fe6 /drivers/regulator/tps6524x-regulator.c | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) | |
download | linux-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.c | 1 |
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; } |