diff mbox series

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

Message ID 20240704073606.1976936-1-nichen@iscas.ac.cn
State Accepted
Commit 9db4585eca22fcd0422a94ac792f87dcbf74b643
Headers show
Series clk: qcom: kpss-xcc: Return of_clk_add_hw_provider to transfer the error | expand

Commit Message

Chen Ni July 4, 2024, 7:36 a.m. UTC
Return of_clk_add_hw_provider() in order to transfer the error if it
fails.

Fixes: 09be1a39e685 ("clk: qcom: kpss-xcc: register it as clk provider")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 drivers/clk/qcom/kpss-xcc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Dmitry Baryshkov July 5, 2024, 3:22 p.m. UTC | #1
On Thu, Jul 04, 2024 at 03:36:06PM GMT, Chen Ni wrote:
> Return of_clk_add_hw_provider() in order to transfer the error if it
> fails.
> 
> Fixes: 09be1a39e685 ("clk: qcom: kpss-xcc: register it as clk provider")
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
>  drivers/clk/qcom/kpss-xcc.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>
Bjorn Andersson July 6, 2024, 10:01 p.m. UTC | #2
On Thu, 04 Jul 2024 15:36:06 +0800, Chen Ni wrote:
> Return of_clk_add_hw_provider() in order to transfer the error if it
> fails.
> 
> 

Applied, thanks!

[1/1] clk: qcom: kpss-xcc: Return of_clk_add_hw_provider to transfer the error
      commit: 9db4585eca22fcd0422a94ac792f87dcbf74b643

Best regards,
diff mbox series

Patch

diff --git a/drivers/clk/qcom/kpss-xcc.c b/drivers/clk/qcom/kpss-xcc.c
index 23b0b11f0007..e7cfa8d22044 100644
--- a/drivers/clk/qcom/kpss-xcc.c
+++ b/drivers/clk/qcom/kpss-xcc.c
@@ -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 = {