Commit 03299d05 authored by Wei Li's avatar Wei Li Committed by Miquel Raynal
Browse files

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Li <liwei391@huawei.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210407100526.3278741-1-liwei391@huawei.com
parent 6efb943b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;