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: ef3c613ccd
("clk: renesas: Add CPG core wrapper for RZ/G2L SoC")
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20211117115101.28281-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
parent
27527a3d3b
commit
33748744f1
|
@ -879,8 +879,7 @@ static int __init rzg2l_cpg_add_clk_domain(struct device *dev)
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
of_genpd_add_provider_simple(np, genpd);
|
return of_genpd_add_provider_simple(np, genpd);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __init rzg2l_cpg_probe(struct platform_device *pdev)
|
static int __init rzg2l_cpg_probe(struct platform_device *pdev)
|
||||||
|
|
Loading…
Reference in New Issue