summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/uniphier_wdt.c
diff options
context:
space:
mode:
authorGuenter Roeck2019-04-10 18:27:47 +0200
committerWim Van Sebroeck2019-05-05 21:02:32 +0200
commitb1f4718218fbba1e0760fd961f8710460b810906 (patch)
treeab22752eddf7d4518aeb43f2ded03e8f1656d28c /drivers/watchdog/uniphier_wdt.c
parentwatchdog: twl4030_wdt: Convert to use device managed functions and other impr... (diff)
downloadkernel-qcow2-linux-b1f4718218fbba1e0760fd961f8710460b810906.tar.gz
kernel-qcow2-linux-b1f4718218fbba1e0760fd961f8710460b810906.tar.xz
kernel-qcow2-linux-b1f4718218fbba1e0760fd961f8710460b810906.zip
watchdog: uniphier_wdt: drop platform_set_drvdata
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>
Diffstat (limited to 'drivers/watchdog/uniphier_wdt.c')
-rw-r--r--drivers/watchdog/uniphier_wdt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/watchdog/uniphier_wdt.c b/drivers/watchdog/uniphier_wdt.c
index e20a7a459d69..8e9242c23022 100644
--- a/drivers/watchdog/uniphier_wdt.c
+++ b/drivers/watchdog/uniphier_wdt.c
@@ -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);