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>
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c
index 2a6c434..1474c2b 100644
--- a/drivers/watchdog/omap_wdt.c
+++ b/drivers/watchdog/omap_wdt.c
@@ -278,7 +278,6 @@
err_register:
pm_runtime_disable(wdev->dev);
- platform_set_drvdata(pdev, NULL);
return ret;
}
@@ -304,7 +303,6 @@
pm_runtime_disable(wdev->dev);
watchdog_unregister_device(wdog);
- platform_set_drvdata(pdev, NULL);
return 0;
}