soc: rockchip: rockchip_system_monitor: Don't init wide temp when tz is NULL

Change-Id: I9e5213f130582fcb7ee1beae7a5200e9d7ff4bf4
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
Finley Xiao
2023-08-23 10:20:45 +08:00
parent b5b12a0017
commit ece05619d3

View File

@@ -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