summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-07-11 15:17:55 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2018-08-02 15:57:12 +0200
commit28e65edd73f963e7a0838bf3a62106be55dcb925 (patch)
treeab7ffeb180d0f0c83de5dad3edf4613412e84981 /drivers/watchdog
parentwatchdog: stmp3xxx: Switch to SPDX identifier (diff)
downloadlinux-28e65edd73f963e7a0838bf3a62106be55dcb925.tar.xz
linux-28e65edd73f963e7a0838bf3a62106be55dcb925.zip
watchdog: sprd_wdt: Remove redundant dev_err call in sprd_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@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/sprd_wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/sprd_wdt.c b/drivers/watchdog/sprd_wdt.c
index b4d484a42b70..ff9397d9638a 100644
--- a/drivers/watchdog/sprd_wdt.c
+++ b/drivers/watchdog/sprd_wdt.c
@@ -279,10 +279,8 @@ static int sprd_wdt_probe(struct platform_device *pdev)
wdt_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
wdt->base = devm_ioremap_resource(&pdev->dev, wdt_res);
- if (IS_ERR(wdt->base)) {
- dev_err(&pdev->dev, "failed to map memory resource\n");
+ if (IS_ERR(wdt->base))
return PTR_ERR(wdt->base);
- }
wdt->enable = devm_clk_get(&pdev->dev, "enable");
if (IS_ERR(wdt->enable)) {