Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6638f4e5 authored by Sachin Kamat's avatar Sachin Kamat Committed by Wim Van Sebroeck
Browse files

watchdog: twl4030: Remove redundant platform_set_drvdata()



Commit 0998d063 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Timo Kokkonen <timo.t.kokkonen@nokia.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 6697dbd2
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -90,10 +90,8 @@ static int twl4030_wdt_probe(struct platform_device *pdev)
	twl4030_wdt_stop(wdt);

	ret = watchdog_register_device(wdt);
	if (ret) {
		platform_set_drvdata(pdev, NULL);
	if (ret)
		return ret;
	}

	return 0;
}
@@ -103,7 +101,6 @@ static int twl4030_wdt_remove(struct platform_device *pdev)
	struct watchdog_device *wdt = platform_get_drvdata(pdev);

	watchdog_unregister_device(wdt);
	platform_set_drvdata(pdev, NULL);

	return 0;
}