If we fail to get the hwspinlock due to probe defer, we shouldn't
print an error message. Just be silent in this case.
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
 
        hwlock_id = of_hwspin_lock_get_id(pdev->dev.of_node, 0);
        if (hwlock_id < 0) {
-               dev_err(&pdev->dev, "failed to retrieve hwlock\n");
+               if (hwlock_id != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "failed to retrieve hwlock\n");
                return hwlock_id;
        }