diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2012-10-10 16:23:36 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-12-19 16:24:57 -0500 |
commit | ef4817472982b3b6d993e6456cfad58dc848ef70 (patch) | |
tree | ec1026a11c8e7d22c525c2b00bebc1cb942bbbd7 /drivers/watchdog | |
parent | 4f4753d96d30cf4477eafa077ae7f1326a80c1d8 (diff) |
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/watchdog')
-rw-r--r-- | drivers/watchdog/omap_wdt.c | 2 |
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) | |||
278 | 278 | ||
279 | err_register: | 279 | err_register: |
280 | pm_runtime_disable(wdev->dev); | 280 | pm_runtime_disable(wdev->dev); |
281 | platform_set_drvdata(pdev, NULL); | ||
282 | 281 | ||
283 | return ret; | 282 | return ret; |
284 | } | 283 | } |
@@ -304,7 +303,6 @@ static int omap_wdt_remove(struct platform_device *pdev) | |||
304 | 303 | ||
305 | pm_runtime_disable(wdev->dev); | 304 | pm_runtime_disable(wdev->dev); |
306 | watchdog_unregister_device(wdog); | 305 | watchdog_unregister_device(wdog); |
307 | platform_set_drvdata(pdev, NULL); | ||
308 | 306 | ||
309 | return 0; | 307 | return 0; |
310 | } | 308 | } |