android_kernel_xiaomi_sm8450/drivers/soc/rockchip
Geert Uytterhoeven 54d52ad940 soc: rockchip: power-domain: Use of_clk_get_parent_count() instead of open coding
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@glider.be>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2018-05-02 08:33:52 -07:00
..
grf.c soc: rockchip: disable jtag switching for RK3128 SoCs 2018-03-05 19:42:23 +01:00
Kconfig soc: rockchip: add driver handling grf setup 2017-01-06 10:28:19 +01:00
Makefile soc: rockchip: add driver handling grf setup 2017-01-06 10:28:19 +01:00
pm_domains.c soc: rockchip: power-domain: Use of_clk_get_parent_count() instead of open coding 2018-05-02 08:33:52 -07:00