Message ID | 20191125135910.679310-7-niklas.cassel@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Clock changes to support cpufreq on QCS404 | expand |
Quoting Niklas Cassel (2019-11-25 05:59:08) > From: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> > > If devm_clk_get() fails due to probe deferral, we shouldn't print an > error message. Just be silent in this case. > > Co-developed-by: Niklas Cassel <niklas.cassel@linaro.org> > Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org> > Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> > --- Applied to clk-next
diff --git a/drivers/clk/qcom/apcs-msm8916.c b/drivers/clk/qcom/apcs-msm8916.c index a6c89a310b18..46061b3d230e 100644 --- a/drivers/clk/qcom/apcs-msm8916.c +++ b/drivers/clk/qcom/apcs-msm8916.c @@ -79,7 +79,8 @@ static int qcom_apcs_msm8916_clk_probe(struct platform_device *pdev) a53cc->pclk = devm_clk_get(parent, NULL); if (IS_ERR(a53cc->pclk)) { ret = PTR_ERR(a53cc->pclk); - dev_err(dev, "failed to get clk: %d\n", ret); + if (ret != -EPROBE_DEFER) + dev_err(dev, "failed to get clk: %d\n", ret); return ret; }