Skip to content

Commit

Permalink
clk: qcom: kpss-xcc: Return of_clk_add_hw_provider to transfer the error
Browse files Browse the repository at this point in the history
[ Upstream commit 9db4585eca22fcd0422a94ac792f87dcbf74b643 ]

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

Fixes: 09be1a3 ("clk: qcom: kpss-xcc: register it as clk provider")
Signed-off-by: Chen Ni <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
(cherry picked from commit 7e8e9d3d4ecfd0692a8fad42358a29e0ab447cc4)
  • Loading branch information
Chen Ni authored and Avenger-285714 committed Aug 12, 2024
1 parent 2ba87a9 commit 30f2ee3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/clk/qcom/kpss-xcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,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 = {
Expand Down

0 comments on commit 30f2ee3

Please sign in to comment.