Skip to content
Snippets Groups Projects
Commit 61059b70 authored by Ding Xiang's avatar Ding Xiang Committed by Bartosz Golaszewski
Browse files

gpio: ixp4xx: remove redundant dev_err message


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

Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent d9e5ebac
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment