From 604cec4004abe5a96c734f2fab7b74809d2d742f Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Wed, 27 Dec 2023 18:55:05 +0800 Subject: [PATCH] soc: rockchip: rockchip_system_monitor: Fix opp_info NULL pointer Fixes: feecbd010e4e ("soc: rockchip: rockchip_system_monitor: Add support to use low temp pvtpll config") Signed-off-by: Finley Xiao Change-Id: I17f5dbc2cd2da487f7e5c9f81a89520c6eb53799 --- drivers/soc/rockchip/rockchip_system_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/rockchip/rockchip_system_monitor.c b/drivers/soc/rockchip/rockchip_system_monitor.c index 51844a9c80257..c2fbb6632e2ce 100644 --- a/drivers/soc/rockchip/rockchip_system_monitor.c +++ b/drivers/soc/rockchip/rockchip_system_monitor.c @@ -921,7 +921,7 @@ static void rockchip_low_temp_adjust(struct monitor_dev_info *info, if (devp->update_volt) devp->update_volt(info); - if (devp->opp_info->pvtpll_low_temp) { + if (devp->opp_info && devp->opp_info->pvtpll_low_temp) { res = sip_smc_pvtpll_config(PVTPLL_LOW_TEMP, devp->opp_info->pvtpll_clk_id, is_low, 0, 0, 0, 0);