Skip to content

Commit 97c8d51

Browse files
prabhakarladgeertu
authored andcommitted
clk: renesas: cpg-mssr: 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 cpg_mssr_add_clk_domain(). Signed-off-by: Lad Prabhakar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent fa58e46 commit 97c8d51

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clk/renesas/renesas-cpg-mssr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,7 @@ static int __init cpg_mssr_add_clk_domain(struct device *dev,
590590

591591
cpg_mssr_clk_domain = pd;
592592

593-
of_genpd_add_provider_simple(np, genpd);
594-
return 0;
593+
return of_genpd_add_provider_simple(np, genpd);
595594
}
596595

597596
#ifdef CONFIG_RESET_CONTROLLER

0 commit comments

Comments
 (0)