soc: qcom: mem-buf: Do not print errors on probe deferrals

hh_msgq_register() can now return -EPROBE_DEFER as an error code.
Since this is not a fatal error, and will end up in having the
probe function called again at a later point in time, do not
print an error when -EPROBE_DEFER is returned.

Change-Id: I7646788719bdbaac309bc1fbd840de754398e23b
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
Isaac J. Manjarres 2020-04-01 22:12:14 -07:00
commit 8185614fe6

View file

@ -1524,8 +1524,10 @@ static int mem_buf_probe(struct platform_device *pdev)
mem_buf_hh_msgq_hdl = hh_msgq_register(HH_MSGQ_LABEL_MEMBUF);
if (IS_ERR(mem_buf_hh_msgq_hdl)) {
ret = PTR_ERR(mem_buf_hh_msgq_hdl);
dev_err(&pdev->dev,
"Message queue registration failed: rc: %d\n", ret);
if (ret != EPROBE_DEFER)
dev_err(&pdev->dev,
"Message queue registration failed: rc: %d\n",
ret);
goto err_msgq_register;
}