Skip to content

Commit

Permalink
mtd: nand: mediatek: remove redundant dev_err call in mtk_nfc_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Boris Brezillon committed Jan 30, 2017
1 parent de0b344 commit 07f7644
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mtd/nand/mtk_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 07f7644

Please sign in to comment.