watchdog: uniphier_wdt: drop platform_set_drvdata
authorGuenter Roeck <linux@roeck-us.net>
Wed, 10 Apr 2019 16:27:47 +0000 (09:27 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 5 May 2019 19:02:32 +0000 (21:02 +0200)
There is no call to dev_get_drvdata() or platform_get_drvdata() in the
driver. Drop the unnecessary call to platform_set_drvdata().

The conversion was done automatically with coccinelle using the
following semantic patches. The semantic patches and the scripts
used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches

Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/uniphier_wdt.c

index e20a7a4..8e9242c 100644 (file)
@@ -191,8 +191,6 @@ static int uniphier_wdt_probe(struct platform_device *pdev)
        if (!wdev)
                return -ENOMEM;
 
-       platform_set_drvdata(pdev, wdev);
-
        parent = of_get_parent(dev->of_node); /* parent should be syscon node */
        regmap = syscon_node_to_regmap(parent);
        of_node_put(parent);