Skip to content

Commit ffe37ed

Browse files
Taniya Dasbebarino
authored andcommitted
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]>
1 parent 1a1c782 commit ffe37ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/qcom/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static struct clk_hw *qcom_cc_clk_hw_get(struct of_phandle_args *clkspec,
218218
return ERR_PTR(-EINVAL);
219219
}
220220

221-
return cc->rclks[idx] ? &cc->rclks[idx]->hw : ERR_PTR(-ENOENT);
221+
return cc->rclks[idx] ? &cc->rclks[idx]->hw : NULL;
222222
}
223223

224224
int qcom_cc_really_probe(struct platform_device *pdev,

0 commit comments

Comments
 (0)