mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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:
parent
1264c046de
commit
8185614fe6
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue