watchdog: ftwdt010_wdt: Use 'dev' consistently
authorGuenter Roeck <linux@roeck-us.net>
Mon, 8 Apr 2019 19:38:39 +0000 (12:38 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 5 May 2019 19:02:19 +0000 (21:02 +0200)
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>
drivers/watchdog/ftwdt010_wdt.c

index ecb32c42e83905e708a46add57a3ab466f3c285b..9ea0e56fa7eefb86fa7f1d3d54a6d0682a100281 100644 (file)
@@ -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;
        }