watchdog: mpcore: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 3 May 2013 20:11:15 +0000 (01:41 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 11 Jul 2013 19:09:30 +0000 (21:09 +0200)
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@linaro.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/mpcore_wdt.c

index 233cfadcb21f55538310f938ff037b0dbd236225..4f5ac408c7a363b5043ed4e1df23c55b121a457d 100644 (file)
@@ -379,8 +379,6 @@ static int mpcore_wdt_probe(struct platform_device *pdev)
 
 static int mpcore_wdt_remove(struct platform_device *pdev)
 {
-       platform_set_drvdata(pdev, NULL);
-
        misc_deregister(&mpcore_wdt_miscdev);
 
        mpcore_wdt_pdev = NULL;