diff options
author | Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> | 2019-11-25 14:59:08 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-12-18 22:07:52 -0800 |
commit | 1ea7d2ca7b0875b45d593c56016884bb6f5e2c87 (patch) | |
tree | cc2b01b7380b101d923a4627086c8e8bacd5fd9f /drivers/clk/qcom | |
parent | 8a7729abec38368163fb62b3754e792dd29258e3 (diff) | |
download | linux-1ea7d2ca7b0875b45d593c56016884bb6f5e2c87.tar.gz linux-1ea7d2ca7b0875b45d593c56016884bb6f5e2c87.tar.bz2 linux-1ea7d2ca7b0875b45d593c56016884bb6f5e2c87.zip |
clk: qcom: apcs-msm8916: silently error out on EPROBE_DEFER
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>
Link: https://lkml.kernel.org/r/20191125135910.679310-7-niklas.cassel@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/qcom')
-rw-r--r-- | drivers/clk/qcom/apcs-msm8916.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |