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>
This commit is contained in:
parent
2671a3a31b
commit
28e65edd73
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue