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>
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)) {