mtd: nand: mediatek: remove redundant dev_err call in mtk_nfc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 17 Jan 2017 14:22:46 +0000 (14:22 +0000)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 30 Jan 2017 10:54:22 +0000 (11:54 +0100)
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>
drivers/mtd/nand/mtk_nand.c

index 6c3eed3c20941c0f9ab0ddb5f7ec86ad623a9b7e..6c517c682939db436eb040e7481682c6ae309e69 100644 (file)
@@ -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;
        }