Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> Cc: Mika Westerberg <mika.westerberg@xxxxxx> --- drivers/watchdog/ts72xx_wdt.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c index b8a9245..be59bf1 100644 --- a/drivers/watchdog/ts72xx_wdt.c +++ b/drivers/watchdog/ts72xx_wdt.c @@ -463,7 +463,6 @@ static int ts72xx_wdt_probe(struct platform_device *pdev) return 0; fail_unmap_feed: - platform_set_drvdata(pdev, NULL); iounmap(wdt->feed_reg); fail_free_feed: release_mem_region(r2->start, resource_size(r2)); @@ -483,7 +482,6 @@ static int ts72xx_wdt_remove(struct platform_device *pdev) int error; error = misc_deregister(&ts72xx_wdt_miscdev); - platform_set_drvdata(pdev, NULL); iounmap(wdt->feed_reg); res = platform_get_resource(pdev, IORESOURCE_MEM, 1); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html