projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a1c782
)
clk: qcom: common: Return NULL from clk_hw OF provider
author
Taniya Das
<tdas@codeaurora.org>
Mon, 14 Oct 2019 10:23:05 +0000
(15:53 +0530)
committer
Stephen Boyd
<sboyd@kernel.org>
Thu, 7 Nov 2019 21:10:44 +0000
(13:10 -0800)
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 <tdas@codeaurora.org>
Link:
https://lkml.kernel.org/r/20191014102308.27441-3-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/common.c
patch
|
blob
|
history
diff --git
a/drivers/clk/qcom/common.c
b/drivers/clk/qcom/common.c
index
28ddc74
..
caba81d
100644
(file)
--- 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,