Commit ef481747 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Wim Van Sebroeck
Browse files

watchdog: omap_wdt: delete redundant platform_set_drvdata() calls



It's not needed to manually reset the driver data.

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 4f4753d9
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
}