]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
watchdog: omap_wdt: delete redundant platform_set_drvdata() calls
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 10 Oct 2012 20:23:36 +0000 (23:23 +0300)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 19 Dec 2012 21:24:57 +0000 (22:24 +0100)
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>
drivers/watchdog/omap_wdt.c

index 2a6c434cd7413917dccd2a989491e10cdc2d75a1..1474c2bd3077d908cfe46466fe4709b04909ed6a 100644 (file)
@@ -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;
 }