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:
Wei Yongjun 2017-04-25 16:17:33 +00:00 committed by Wim Van Sebroeck
parent 1fccb73011
commit 07441a7dd1

View File

@ -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);