aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-01-17 06:25:33 -0500
committerBoris Brezillon <boris.brezillon@free-electrons.com>2018-01-19 03:40:03 -0500
commite6b90db83f8b33735fe5a008ff171f69527a5305 (patch)
tree66cb5f0b4de5fdf30fd498f26b83f921c84666d3
parent82cea533aed44c1b8553fe782e1bc5e1262bd71a (diff)
mtd: onenand: omap2: Remove redundant dev_err call in omap2_onenand_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> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
-rw-r--r--drivers/mtd/onenand/omap2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index a4a2159bcfb7..87c34f607a75 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -532,10 +532,8 @@ static int omap2_onenand_probe(struct platform_device *pdev)
532 c->phys_base = res->start; 532 c->phys_base = res->start;
533 533
534 c->onenand.base = devm_ioremap_resource(dev, res); 534 c->onenand.base = devm_ioremap_resource(dev, res);
535 if (IS_ERR(c->onenand.base)) { 535 if (IS_ERR(c->onenand.base))
536 dev_err(dev, "Cannot reserve memory region %pR\n", res);
537 return PTR_ERR(c->onenand.base); 536 return PTR_ERR(c->onenand.base);
538 }
539 537
540 c->int_gpiod = devm_gpiod_get_optional(dev, "int", GPIOD_IN); 538 c->int_gpiod = devm_gpiod_get_optional(dev, "int", GPIOD_IN);
541 if (IS_ERR(c->int_gpiod)) { 539 if (IS_ERR(c->int_gpiod)) {