mtd: nand: mediatek: remove redundant dev_err call in mtk_nfc_probe()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Feb 12 18:59:04 PST 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=07f76443ef81e2b76bb6f7858ba183cd60357ada
Commit:     07f76443ef81e2b76bb6f7858ba183cd60357ada
Parent:     de0b34455afd1204a3644c9eb25b0b3b0aeb2fe9
Author:     Wei Yongjun <weiyongjun1 at huawei.com>
AuthorDate: Tue Jan 17 14:22:46 2017 +0000
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Mon Jan 30 11:54:22 2017 +0100

    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 at huawei.com>
    Acked-by: Marek Vasut <marek.vasut at gmail.com>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/nand/mtk_nand.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/nand/mtk_nand.c b/drivers/mtd/nand/mtk_nand.c
index 6c3eed3..6c517c6 100644
--- a/drivers/mtd/nand/mtk_nand.c
+++ b/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;
 	}
 



More information about the linux-mtd-cvs mailing list