提交 07441a7d 编写于 作者: W Wei Yongjun 提交者: Wim Van Sebroeck

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: NWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 1fccb730
...@@ -211,10 +211,8 @@ static int zx2967_wdt_probe(struct platform_device *pdev) ...@@ -211,10 +211,8 @@ static int zx2967_wdt_probe(struct platform_device *pdev)
base = platform_get_resource(pdev, IORESOURCE_MEM, 0); base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
wdt->reg_base = devm_ioremap_resource(dev, base); wdt->reg_base = devm_ioremap_resource(dev, base);
if (IS_ERR(wdt->reg_base)) { if (IS_ERR(wdt->reg_base))
dev_err(dev, "ioremap failed\n");
return PTR_ERR(wdt->reg_base); return PTR_ERR(wdt->reg_base);
}
zx2967_wdt_reset_sysctrl(dev); zx2967_wdt_reset_sysctrl(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册