aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/virtual.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-05-03 20:46:10 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-12 18:34:12 +0400
commit405c54009c85cf03d459f5880744b0d4ebb892e4 (patch)
tree274cba389901c774ed0d2a9315469198205ff851 /drivers/regulator/virtual.c
parentLinux 3.10-rc1 (diff)
downloadlinux-dev-405c54009c85cf03d459f5880744b0d4ebb892e4.tar.xz
linux-dev-405c54009c85cf03d459f5880744b0d4ebb892e4.zip
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/virtual.c')
-rw-r--r--drivers/regulator/virtual.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/virtual.c b/drivers/regulator/virtual.c
index 01c66e9712a4..a9d4284ea007 100644
--- a/drivers/regulator/virtual.c
+++ b/drivers/regulator/virtual.c
@@ -330,8 +330,6 @@ static int regulator_virtual_remove(struct platform_device *pdev)
if (drvdata->enabled)
regulator_disable(drvdata->regulator);
- platform_set_drvdata(pdev, NULL);
-
return 0;
}