diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 06:15:35 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-20 11:49:34 +0200 |
commit | 78925b3a791b3ad485fe56d0b8951a5d043b7cae (patch) | |
tree | c5beff683896d15b126a245b0be1277f1ab21fe6 /drivers | |
parent | Linux 3.12-rc1 (diff) | |
download | linux-78925b3a791b3ad485fe56d0b8951a5d043b7cae.tar.xz 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')
-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; } |