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: firefly_0821_release~3680^2~1342^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ef4817472982b3b6d993e6456cfad58dc848ef70;p=firefly-linux-kernel-4.4.55.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 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; }