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

mtd: rawnand: cadence: remove a redundant dev_err call

There is an error message within devm_ioremap_resource already, so
remove the dev_err call to avoid a redundant error message.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200921013805.1724606-1-liushixin2@huawei.com

authored by

Liu Shixin and committed by
Miquel Raynal
fb1c7e82 6d111787

+2 -6
+2 -6
drivers/mtd/nand/raw/cadence-nand-controller.c
··· 2980 2980 dev_info(cdns_ctrl->dev, "IRQ: nr %d\n", cdns_ctrl->irq); 2981 2981 2982 2982 cdns_ctrl->reg = devm_platform_ioremap_resource(ofdev, 0); 2983 - if (IS_ERR(cdns_ctrl->reg)) { 2984 - dev_err(&ofdev->dev, "devm_ioremap_resource res 0 failed\n"); 2983 + if (IS_ERR(cdns_ctrl->reg)) 2985 2984 return PTR_ERR(cdns_ctrl->reg); 2986 - } 2987 2985 2988 2986 res = platform_get_resource(ofdev, IORESOURCE_MEM, 1); 2989 2987 cdns_ctrl->io.dma = res->start; 2990 2988 cdns_ctrl->io.virt = devm_ioremap_resource(&ofdev->dev, res); 2991 - if (IS_ERR(cdns_ctrl->io.virt)) { 2992 - dev_err(cdns_ctrl->dev, "devm_ioremap_resource res 1 failed\n"); 2989 + if (IS_ERR(cdns_ctrl->io.virt)) 2993 2990 return PTR_ERR(cdns_ctrl->io.virt); 2994 - } 2995 2991 2996 2992 dt->clk = devm_clk_get(cdns_ctrl->dev, "nf_clk"); 2997 2993 if (IS_ERR(dt->clk))