1
0
Fork 0

gpio: ixp4xx: remove redundant dev_err message

devm_ioremap_resource already contains error message, so remove
the redundant dev_err message

Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
alistair/sunxi64-5.4-dsi
Ding Xiang 2019-07-31 17:47:54 +08:00 committed by Bartosz Golaszewski
parent d9e5ebac18
commit 61059b7048
1 changed files with 1 additions and 3 deletions

View File

@ -321,10 +321,8 @@ static int ixp4xx_gpio_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
g->base = devm_ioremap_resource(dev, res);
if (IS_ERR(g->base)) {
dev_err(dev, "ioremap error\n");
if (IS_ERR(g->base))
return PTR_ERR(g->base);
}
/*
* Make sure GPIO 14 and 15 are NOT used as clocks but GPIO on