Skip to contentSkip to conversation

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

PATCH Applied Wei Yongjun 3 participants 3 messages Jan 17, 2017 – Jan 30, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

From: Wei Yongjun <[email protected]>

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 drivers/mtd/nand/mtk_nand.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/mtk_nand.c +0 -1
index 6c3eed3..6c517c6 100644
@@ -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;
 	}
 
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

Quoted 19 lines
---
 drivers/mtd/nand/mtk_nand.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/mtk_nand.c +0 -1
index 6c3eed3..6c517c6 100644
@@ -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;
 	}
 
Signature · 2 lines
Best regards,
Marek Vasut
#2 lore raw
In reply to Wei Yongjun
Quoted 6 lines · On Tue, 17 Jan 2017 14:22:46 +0000 Wei Yongjun <[email protected]> wrote:

From: Wei Yongjun <[email protected]>

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

Applied.

Thanks,

Boris

Quoted 20 lines
---
 drivers/mtd/nand/mtk_nand.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/mtk_nand.c +0 -1
index 6c3eed3..6c517c6 100644
@@ -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;
 	}