Skip to contentSkip to conversation

mailbox: sun6i-msgbox: Remove redundant dev_err call in sun6i_msgbox_probe()

PATCH New ChenXiaoSong 1 participant 1 message Jun 4, 2021

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

PATCH 1/1 mailbox: sun6i-msgbox: Remove redundant dev_err call in sun6i_msgbox_probe()

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

---
 drivers/mailbox/sun6i-msgbox.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mailbox/sun6i-msgbox.c +0 -1
index ccecf2e5941d..e357236c7dd1 100644
@@ -255,7 +255,6 @@ static int sun6i_msgbox_probe(struct platform_device *pdev)
 	mbox->regs = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(mbox->regs)) {
 		ret = PTR_ERR(mbox->regs);
-		dev_err(dev, "Failed to map MMIO resource: %d\n", ret);
 		goto err_disable_unprepare;
 	}
 
Signature · 1 line
2.25.4