Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
Boris Brezillon
e6b90db8 82cea533

+1 -3
+1 -3
drivers/mtd/onenand/omap2.c
··· 532 532 c->phys_base = res->start; 533 533 534 534 c->onenand.base = devm_ioremap_resource(dev, res); 535 - if (IS_ERR(c->onenand.base)) { 536 - dev_err(dev, "Cannot reserve memory region %pR\n", res); 535 + if (IS_ERR(c->onenand.base)) 537 536 return PTR_ERR(c->onenand.base); 538 - } 539 537 540 538 c->int_gpiod = devm_gpiod_get_optional(dev, "int", GPIOD_IN); 541 539 if (IS_ERR(c->int_gpiod)) {