diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-05-03 12:46:10 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-12 14:34:12 (GMT) |
commit | 405c54009c85cf03d459f5880744b0d4ebb892e4 (patch) | |
tree | 274cba389901c774ed0d2a9315469198205ff851 /drivers/regulator/wm831x-isink.c | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) | |
download | linux-fsl-qoriq-405c54009c85cf03d459f5880744b0d4ebb892e4.tar.xz |
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/wm831x-isink.c')
-rw-r--r-- | drivers/regulator/wm831x-isink.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/wm831x-isink.c b/drivers/regulator/wm831x-isink.c index 68586ee..16ebdf9 100644 --- a/drivers/regulator/wm831x-isink.c +++ b/drivers/regulator/wm831x-isink.c @@ -225,8 +225,6 @@ static int wm831x_isink_remove(struct platform_device *pdev) { struct wm831x_isink *isink = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); - free_irq(wm831x_irq(isink->wm831x, platform_get_irq(pdev, 0)), isink); regulator_unregister(isink->regulator); |