aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/pcap-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-05-03 08:46:10 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-12 10:34:12 -0400
commit405c54009c85cf03d459f5880744b0d4ebb892e4 (patch)
tree274cba389901c774ed0d2a9315469198205ff851 /drivers/regulator/pcap-regulator.c
parentf722406faae2d073cc1d01063d1123c35425939e (diff)
regulator: Remove all platform_set_drvdata(pdev, NULL) in drivers
Since 0998d06310 "device-core: Ensure drvdata = NULL when no driver is bound", this is done by driver core after device_release or on probe failure. Thus we can remove all platform_set_drvdata(pdev, NULL) in drivers. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/pcap-regulator.c')
-rw-r--r--drivers/regulator/pcap-regulator.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/pcap-regulator.c b/drivers/regulator/pcap-regulator.c
index 4899342f1fc1..1a73a297fe73 100644
--- a/drivers/regulator/pcap-regulator.c
+++ b/drivers/regulator/pcap-regulator.c
@@ -260,7 +260,6 @@ static int pcap_regulator_remove(struct platform_device *pdev)
260 struct regulator_dev *rdev = platform_get_drvdata(pdev); 260 struct regulator_dev *rdev = platform_get_drvdata(pdev);
261 261
262 regulator_unregister(rdev); 262 regulator_unregister(rdev);
263 platform_set_drvdata(pdev, NULL);
264 263
265 return 0; 264 return 0;
266} 265}