Re: [PATCH v2 3/5] soc: rockchip: power-domain: Use of_clk_get_parent_count() instead of open coding
From: Heiko Stuebner
Date: Tue Apr 10 2018 - 09:18:24 EST
Am Dienstag, 10. April 2018, 14:51:39 CEST schrieb Geert Uytterhoeven:
> As of_clk_get_parent_count() returns zero on failure, while
> of_count_phandle_with_args() might return a negative error code, this
> also fixes the issue of possibly using a negative number in the
> allocation below.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
Depending on how we plan on merging this series, I could either pick
this patch for 4.19, after patch1 makes it into 4.18 or otherwise
someone could pick the whole series together with my
Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx>
for this patch.
Heiko