From ece05619d34056a652a4ba09c600d916366ce843 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Wed, 23 Aug 2023 10:20:45 +0800 Subject: [PATCH] soc: rockchip: rockchip_system_monitor: Don't init wide temp when tz is NULL Change-Id: I9e5213f130582fcb7ee1beae7a5200e9d7ff4bf4 Signed-off-by: Finley Xiao --- drivers/soc/rockchip/rockchip_system_monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/rockchip/rockchip_system_monitor.c b/drivers/soc/rockchip/rockchip_system_monitor.c index c35978a95d57..4d4f0b2c1011 100644 --- a/drivers/soc/rockchip/rockchip_system_monitor.c +++ b/drivers/soc/rockchip/rockchip_system_monitor.c @@ -1006,6 +1006,8 @@ rockchip_system_monitor_wide_temp_init(struct monitor_dev_info *info) if (!info->opp_table) return; + if (!system_monitor->tz) + return; /* * set the init state to low temperature that the voltage will be enough