From: Aaro Koskinen Date: Wed, 10 Oct 2012 20:23:36 +0000 (+0300) Subject: watchdog: omap_wdt: delete redundant platform_set_drvdata() calls X-Git-Tag: v3.8-rc1~1^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef4817472982b3b6d993e6456cfad58dc848ef70;p=thirdparty%2Fkernel%2Flinux.git watchdog: omap_wdt: delete redundant platform_set_drvdata() calls It's not needed to manually reset the driver data. Signed-off-by: Aaro Koskinen Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 2a6c434cd7413..1474c2bd3077d 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; }