]> Git Repo - linux.git/commitdiff
watchdog: iTCO_wdt: use dev_err() instead of pr_err()
authorEnrico Weigelt, metux IT consult <[email protected]>
Wed, 16 Jun 2021 18:17:08 +0000 (20:17 +0200)
committerWim Van Sebroeck <[email protected]>
Mon, 21 Jun 2021 06:49:19 +0000 (08:49 +0200)
Use dev_err() instead of pr_err(), so device name is also shown in the log.

Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
drivers/watchdog/iTCO_wdt.c

index 3f1324871cfd688ba275452e7511b0276f2421db..b3f604669e2c3464da6ad655876b1d501c38a272 100644 (file)
@@ -485,13 +485,13 @@ static int iTCO_wdt_probe(struct platform_device *pdev)
                if (!devm_request_region(dev, p->smi_res->start,
                                         resource_size(p->smi_res),
                                         pdev->name)) {
-                       pr_err("I/O address 0x%04llx already in use, device disabled\n",
+                       dev_err(dev, "I/O address 0x%04llx already in use, device disabled\n",
                               (u64)SMI_EN(p));
                        return -EBUSY;
                }
        } else if (iTCO_vendorsupport ||
                   turn_SMI_watchdog_clear_off >= p->iTCO_version) {
-               pr_err("SMI I/O resource is missing\n");
+               dev_err(dev, "SMI I/O resource is missing\n");
                return -ENODEV;
        }
 
This page took 0.057633 seconds and 4 git commands to generate.