mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
watchdog: zx2967: remove redundant dev_err call in zx2967_wdt_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
1fccb73011
commit
07441a7dd1
@ -211,10 +211,8 @@ static int zx2967_wdt_probe(struct platform_device *pdev)
|
||||
|
||||
base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
wdt->reg_base = devm_ioremap_resource(dev, base);
|
||||
if (IS_ERR(wdt->reg_base)) {
|
||||
dev_err(dev, "ioremap failed\n");
|
||||
if (IS_ERR(wdt->reg_base))
|
||||
return PTR_ERR(wdt->reg_base);
|
||||
}
|
||||
|
||||
zx2967_wdt_reset_sysctrl(dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user