Browse Source

mtd: nand: mediatek: remove redundant dev_err call in mtk_nfc_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>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Wei Yongjun 8 years ago
parent
commit
07f76443ef
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/mtd/nand/mtk_nand.c

+ 0 - 1
drivers/mtd/nand/mtk_nand.c

@@ -1383,7 +1383,6 @@ static int mtk_nfc_probe(struct platform_device *pdev)
 	nfc->regs = devm_ioremap_resource(dev, res);
 	if (IS_ERR(nfc->regs)) {
 		ret = PTR_ERR(nfc->regs);
-		dev_err(dev, "no nfi base\n");
 		goto release_ecc;
 	}