mtd: onenand: omap2: Remove redundant dev_err call in omap2_onenand_probe()
[sfrench/cifs-2.6.git] / drivers / mtd / onenand / omap2.c
index a4a2159bcfb7f51d9891ebfd5f5b29ce1f34d096..87c34f607a75745cd5f254c2b8806040658fdc09 100644 (file)
@@ -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)) {