summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWei Li <liwei391@huawei.com>2021-04-07 18:05:26 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-05-10 10:34:23 +0200
commit03299d054047c32d864abe2e640533c55acda6c7 (patch)
treee2eb81b9c003516a1ada70485d63e62d3099372e /drivers
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
mtd: rawnand: hisi504: Remove redundant dev_err call in probe
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Li <liwei391@huawei.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210407100526.3278741-1-liwei391@huawei.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/raw/hisi504_nand.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/raw/hisi504_nand.c b/drivers/mtd/nand/raw/hisi504_nand.c
index 8b2122ce6ec3..78c4e05434e2 100644
--- a/drivers/mtd/nand/raw/hisi504_nand.c
+++ b/drivers/mtd/nand/raw/hisi504_nand.c
@@ -761,10 +761,8 @@ static int hisi_nfc_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
host->mmio = devm_ioremap_resource(dev, res);
- if (IS_ERR(host->mmio)) {
- dev_err(dev, "devm_ioremap_resource[1] fail\n");
+ if (IS_ERR(host->mmio))
return PTR_ERR(host->mmio);
- }
mtd->name = "hisi_nand";
mtd->dev.parent = &pdev->dev;