[PATCH v3 3/5] soc: rockchip: power-domain: Use of_clk_get_parent_count() instead of open coding

Stephen Boyd sboyd at kernel.org
Wed May 2 08:38:46 PDT 2018


Quoting Geert Uytterhoeven (2018-04-18 07:50:03)
> 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 at glider.be>
> Reviewed-by: Heiko Stuebner <heiko at sntech.de>
> ---

Applied to clk-next




More information about the Linux-rockchip mailing list