summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2012-10-10 22:23:36 +0200
committerWim Van Sebroeck <wim@iguana.be>2012-12-19 22:24:57 +0100
commitef4817472982b3b6d993e6456cfad58dc848ef70 (patch)
treeec1026a11c8e7d22c525c2b00bebc1cb942bbbd7 /drivers
parentwatchdog: omap_wdt: convert to devm_ functions (diff)
downloadlinux-ef4817472982b3b6d993e6456cfad58dc848ef70.tar.xz
linux-ef4817472982b3b6d993e6456cfad58dc848ef70.zip
watchdog: omap_wdt: delete redundant platform_set_drvdata() calls
It's not needed to manually reset the driver data. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/omap_wdt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c
index 2a6c434cd741..1474c2bd3077 100644
--- a/drivers/watchdog/omap_wdt.c
+++ b/drivers/watchdog/omap_wdt.c
@@ -278,7 +278,6 @@ static int omap_wdt_probe(struct platform_device *pdev)
err_register:
pm_runtime_disable(wdev->dev);
- platform_set_drvdata(pdev, NULL);
return ret;
}
@@ -304,7 +303,6 @@ static int omap_wdt_remove(struct platform_device *pdev)
pm_runtime_disable(wdev->dev);
watchdog_unregister_device(wdog);
- platform_set_drvdata(pdev, NULL);
return 0;
}