Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8185614f authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

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: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 1264c046
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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);
		if (ret != EPROBE_DEFER)
			dev_err(&pdev->dev,
			"Message queue registration failed: rc: %d\n", ret);
				"Message queue registration failed: rc: %d\n",
				ret);
		goto err_msgq_register;
	}