summaryrefslogtreecommitdiffstats
path: root/drivers/soc/mediatek/mtk-scpsys.c
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2018-03-05 10:17:22 +0100
committerHeiko Stuebner <heiko@sntech.de>2018-03-05 19:42:29 +0100
commitb1271993aa3855bda5073c6061a095fd6e6febc6 (patch)
tree2c670ccc6ab21acb8f35c92d2bf0abc19e979a56 /drivers/soc/mediatek/mtk-scpsys.c
parentsoc: rockchip: power-domain: use clk_bulk APIs (diff)
downloadlinux-b1271993aa3855bda5073c6061a095fd6e6febc6.tar.xz
linux-b1271993aa3855bda5073c6061a095fd6e6febc6.zip
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>
Diffstat (limited to 'drivers/soc/mediatek/mtk-scpsys.c')
0 files changed, 0 insertions, 0 deletions