Skip to content

Commit 9db4585

Browse files
Chen Niandersson
authored andcommitted
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: 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]>
1 parent bd2d330 commit 9db4585

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clk/qcom/kpss-xcc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ static int kpss_xcc_driver_probe(struct platform_device *pdev)
5858
if (IS_ERR(hw))
5959
return PTR_ERR(hw);
6060

61-
of_clk_add_hw_provider(dev->of_node, of_clk_hw_simple_get, hw);
62-
63-
return 0;
61+
return of_clk_add_hw_provider(dev->of_node, of_clk_hw_simple_get, hw);
6462
}
6563

6664
static struct platform_driver kpss_xcc_driver = {

0 commit comments

Comments
 (0)