Skip to content

Commit cf813c6

Browse files
metuxWim Van Sebroeck
authored andcommitted
watchdog: iTCO_wdt: use dev_err() instead of pr_err()
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]>
1 parent e9800b7 commit cf813c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/watchdog/iTCO_wdt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,13 @@ static int iTCO_wdt_probe(struct platform_device *pdev)
485485
if (!devm_request_region(dev, p->smi_res->start,
486486
resource_size(p->smi_res),
487487
pdev->name)) {
488-
pr_err("I/O address 0x%04llx already in use, device disabled\n",
488+
dev_err(dev, "I/O address 0x%04llx already in use, device disabled\n",
489489
(u64)SMI_EN(p));
490490
return -EBUSY;
491491
}
492492
} else if (iTCO_vendorsupport ||
493493
turn_SMI_watchdog_clear_off >= p->iTCO_version) {
494-
pr_err("SMI I/O resource is missing\n");
494+
dev_err(dev, "SMI I/O resource is missing\n");
495495
return -ENODEV;
496496
}
497497

0 commit comments

Comments
 (0)