linux_dsm_epyc7002/drivers/soc/rockchip
Jeffy Chen b1271993aa soc: rockchip: power-domain: Add a sanity check on pd->num_clks
The of_count_phandle_with_args() can fail and return error(for example,
rk3399 pd_vio doesn't have clocks). That would break the pd probe.

Add a sanity check on pd->num_clks to avoid that.

Fixes: 65084121d59d ("soc: rockchip: power-domain: use clk_bulk APIs")
Reported-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Tested-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2018-03-05 19:42:29 +01: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: Add a sanity check on pd->num_clks 2018-03-05 19:42:29 +01:00