aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaniya Das <[email protected]>2019-10-14 15:53:05 +0530
committerStephen Boyd <[email protected]>2019-11-07 13:10:44 -0800
commitffe37ede0a9eb524162c683f48da8558d5323ddb (patch)
treeccbf90cc83b1bb3dfb64506695cd18d9aaee6fdd
parent1a1c78217a779eadc6ef75d0dfb5f33088c6b481 (diff)
clk: qcom: common: Return NULL from clk_hw OF provider
Return NULL in the cases where the clk_hw is not registered with the clock provider, but the clock consumer still requests for a clock id. Signed-off-by: Taniya Das <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
-rw-r--r--drivers/clk/qcom/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c
index 28ddc747d703..caba81d18c70 100644
--- a/drivers/clk/qcom/common.c
+++ b/drivers/clk/qcom/common.c
@@ -218,7 +218,7 @@ static struct clk_hw *qcom_cc_clk_hw_get(struct of_phandle_args *clkspec,
return ERR_PTR(-EINVAL);
}
- return cc->rclks[idx] ? &cc->rclks[idx]->hw : ERR_PTR(-ENOENT);
+ return cc->rclks[idx] ? &cc->rclks[idx]->hw : NULL;
}
int qcom_cc_really_probe(struct platform_device *pdev,