Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6b90db8 authored by Wei Yongjun's avatar Wei Yongjun Committed by Boris Brezillon
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent 82cea533
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -532,10 +532,8 @@ static int omap2_onenand_probe(struct platform_device *pdev)
	c->phys_base = res->start;

	c->onenand.base = devm_ioremap_resource(dev, res);
	if (IS_ERR(c->onenand.base)) {
		dev_err(dev, "Cannot reserve memory region %pR\n", res);
	if (IS_ERR(c->onenand.base))
		return PTR_ERR(c->onenand.base);
	}

	c->int_gpiod = devm_gpiod_get_optional(dev, "int", GPIOD_IN);
	if (IS_ERR(c->int_gpiod)) {