projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
272b98c
)
regulator: tps6524x: Remove redundant spi_set_drvdata
author
Sachin Kamat
<sachin.kamat@linaro.org>
Fri, 20 Sep 2013 04:15:35 +0000
(09:45 +0530)
committer
Mark Brown
<broonie@linaro.org>
Fri, 20 Sep 2013 09:49:34 +0000
(10:49 +0100)
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>
drivers/regulator/tps6524x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps6524x-regulator.c
b/drivers/regulator/tps6524x-regulator.c
index 62e8d28beabd7cc8ad51b2935e29b7d348e17438..8b9ee3983a6cf8145fec958f4e851371fa888973 100644
(file)
--- 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;
}