summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-01-17 14:22:46 +0000
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-01-30 11:54:22 +0100
commit07f76443ef81e2b76bb6f7858ba183cd60357ada (patch)
tree4abb53cd07933f7ed845544fdf04c74843923cdc /drivers/mtd
parentde0b34455afd1204a3644c9eb25b0b3b0aeb2fe9 (diff)
downloadlinux-rpi-07f76443ef81e2b76bb6f7858ba183cd60357ada.tar.gz
linux-rpi-07f76443ef81e2b76bb6f7858ba183cd60357ada.tar.bz2
linux-rpi-07f76443ef81e2b76bb6f7858ba183cd60357ada.zip
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/mtk_nand.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mtk_nand.c b/drivers/mtd/nand/mtk_nand.c
index 6c3eed3c2094..6c517c682939 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;
}