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>
This commit is contained in:
Wei Yongjun 2017-01-17 14:22:46 +00:00 committed by Boris Brezillon
parent de0b34455a
commit 07f76443ef
1 changed files with 0 additions and 1 deletions

View File

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