diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-04-25 16:17:33 +0000 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2017-05-19 10:42:18 +0200 |
commit | 07441a7dd11f6855bcf55fbbfc6abba42258b2c6 (patch) | |
tree | aff29cf756243ec89f240145cbdd7808dac961a2 /drivers/watchdog/zx2967_wdt.c | |
parent | 1fccb73011ea8a5fa0c6d357c33fa29c695139ea (diff) | |
download | op-kernel-dev-07441a7dd11f6855bcf55fbbfc6abba42258b2c6.zip op-kernel-dev-07441a7dd11f6855bcf55fbbfc6abba42258b2c6.tar.gz |
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>
Diffstat (limited to 'drivers/watchdog/zx2967_wdt.c')
-rw-r--r-- | drivers/watchdog/zx2967_wdt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/zx2967_wdt.c b/drivers/watchdog/zx2967_wdt.c index e290d5a..c982527 100644 --- a/drivers/watchdog/zx2967_wdt.c +++ b/drivers/watchdog/zx2967_wdt.c @@ -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); |