diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-08 21:38:39 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2019-05-05 21:02:19 +0200 |
commit | ca05c2e25120190fc8c818b801fe184b38d09b5a (patch) | |
tree | 5a6c3b497ddc5b1ced10e99c7bec5f2c3dc29ffa /drivers/watchdog/ftwdt010_wdt.c | |
parent | watchdog: ep93xx_wdt: Use 'dev' instead of dereferencing it repeatedly (diff) | |
download | linux-ca05c2e25120190fc8c818b801fe184b38d09b5a.tar.xz linux-ca05c2e25120190fc8c818b801fe184b38d09b5a.zip |
watchdog: ftwdt010_wdt: Use 'dev' consistently
Use local variable 'dev' consistently.
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
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/ftwdt010_wdt.c')
-rw-r--r-- | drivers/watchdog/ftwdt010_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/ftwdt010_wdt.c b/drivers/watchdog/ftwdt010_wdt.c index ecb32c42e839..9ea0e56fa7ee 100644 --- a/drivers/watchdog/ftwdt010_wdt.c +++ b/drivers/watchdog/ftwdt010_wdt.c @@ -169,7 +169,7 @@ static int ftwdt010_wdt_probe(struct platform_device *pdev) ret = devm_watchdog_register_device(dev, &gwdt->wdd); if (ret) { - dev_err(&pdev->dev, "failed to register watchdog\n"); + dev_err(dev, "failed to register watchdog\n"); return ret; } |