From: Guenter Roeck Date: Mon, 8 Apr 2019 19:38:39 +0000 (-0700) Subject: watchdog: ftwdt010_wdt: Use 'dev' consistently X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ca05c2e25120190fc8c818b801fe184b38d09b5a;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Wim Van Sebroeck --- 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; }