Skip to content

Commit 3374874

Browse files
prabhakarladgeertu
authored andcommitted
clk: renesas: rzg2l: propagate return value of_genpd_add_provider_simple()
of_genpd_add_provider_simple() might fail, this patch makes sure we check the return value of of_genpd_add_provider_simple() by propagating the return value to the caller of rzg2l_cpg_add_clk_domain(). Fixes: ef3c613 ("clk: renesas: Add CPG core wrapper for RZ/G2L SoC") Signed-off-by: Lad Prabhakar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 27527a3 commit 3374874

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clk/renesas/rzg2l-cpg.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,7 @@ static int __init rzg2l_cpg_add_clk_domain(struct device *dev)
879879
if (ret)
880880
return ret;
881881

882-
of_genpd_add_provider_simple(np, genpd);
883-
return 0;
882+
return of_genpd_add_provider_simple(np, genpd);
884883
}
885884

886885
static int __init rzg2l_cpg_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)