Skip to content

Commit

Permalink
clk: renesas: cpg-mssr: propagate return value of_genpd_add_provider_…
Browse files Browse the repository at this point in the history
…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 <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20211117115101.28281-5-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
  • Loading branch information
Lad Prabhakar authored and Geert Uytterhoeven committed Nov 19, 2021
1 parent fa58e46 commit 97c8d51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/clk/renesas/renesas-cpg-mssr.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,7 @@ static int __init cpg_mssr_add_clk_domain(struct device *dev,

cpg_mssr_clk_domain = pd;

of_genpd_add_provider_simple(np, genpd);
return 0;
return of_genpd_add_provider_simple(np, genpd);
}

#ifdef CONFIG_RESET_CONTROLLER
Expand Down

0 comments on commit 97c8d51

Please sign in to comment.