diff mbox series

[v2] mailbox: remove the error message when gce clk is defer

Message ID 20211025032309.25312-1-jason-jh.lin@mediatek.com (mailing list archive)
State New, archived
Headers show
Series [v2] mailbox: remove the error message when gce clk is defer | expand

Commit Message

Jason-JH Lin (林睿祥) Oct. 25, 2021, 3:23 a.m. UTC
Remove the error message when gce clk is defer.

Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
---
 drivers/mailbox/mtk-cmdq-mailbox.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c
index c591dab9d5a4..2004bc112ba1 100644
--- a/drivers/mailbox/mtk-cmdq-mailbox.c
+++ b/drivers/mailbox/mtk-cmdq-mailbox.c
@@ -577,7 +577,9 @@  static int cmdq_probe(struct platform_device *pdev)
 				cmdq->clocks[alias_id].id = clk_id;
 				cmdq->clocks[alias_id].clk = of_clk_get(node, 0);
 				if (IS_ERR(cmdq->clocks[alias_id].clk)) {
-					dev_err(dev, "failed to get gce clk: %d\n", alias_id);
+					if (PTR_ERR(cmdq->clocks[alias_id].clk) != -EPROBE_DEFER)
+						dev_err(dev, "failed to get gce clk: %d\n",
+							alias_id);
 					return PTR_ERR(cmdq->clocks[alias_id].clk);
 				}
 			}
@@ -586,7 +588,8 @@  static int cmdq_probe(struct platform_device *pdev)
 		cmdq->clocks[alias_id].id = clk_name;
 		cmdq->clocks[alias_id].clk = devm_clk_get(&pdev->dev, clk_name);
 		if (IS_ERR(cmdq->clocks[alias_id].clk)) {
-			dev_err(dev, "failed to get gce clk\n");
+			if (PTR_ERR(cmdq->clocks[alias_id].clk) != -EPROBE_DEFER)
+				dev_err(dev, "failed to get gce clk\n");
 			return PTR_ERR(cmdq->clocks[alias_id].clk);
 		}
 	}