Commit 9db4585e authored by Chen Ni's avatar Chen Ni Committed by Bjorn Andersson

clk: qcom: kpss-xcc: Return of_clk_add_hw_provider to transfer the error

Return of_clk_add_hw_provider() in order to transfer the error if it
fails.

Fixes: 09be1a39 ("clk: qcom: kpss-xcc: register it as clk provider")
Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240704073606.1976936-1-nichen@iscas.ac.cnSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent bd2d330e
......@@ -58,9 +58,7 @@ static int kpss_xcc_driver_probe(struct platform_device *pdev)
if (IS_ERR(hw))
return PTR_ERR(hw);
of_clk_add_hw_provider(dev->of_node, of_clk_hw_simple_get, hw);
return 0;
return of_clk_add_hw_provider(dev->of_node, of_clk_hw_simple_get, hw);
}
static struct platform_driver kpss_xcc_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment