soc: qcom: smem: Silence probe defer error
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 1 Jul 2016 21:18:59 +0000 (14:18 -0700)
committerAndy Gross <andy.gross@linaro.org>
Tue, 23 Aug 2016 20:46:32 +0000 (15:46 -0500)
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>
drivers/soc/qcom/smem.c

index 2e1aa9f130f4d860ea7c57994ba3f1302c2e7072..18ec52f2078aab2b27d0675ced0158908b4275ea 100644 (file)
@@ -740,7 +740,8 @@ static int qcom_smem_probe(struct platform_device *pdev)
 
        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;
        }
 
This page took 0.027318 seconds and 5 git commands to generate.