Skip to content

Commit

Permalink
soc: rockchip: rockchip_system_monitor: Fix opp_info NULL pointer
Browse files Browse the repository at this point in the history
Fixes: feecbd0 ("soc: rockchip: rockchip_system_monitor: Add support to use low temp pvtpll config")
Signed-off-by: Finley Xiao <[email protected]>
Change-Id: I17f5dbc2cd2da487f7e5c9f81a89520c6eb53799
  • Loading branch information
finley1226 authored and rkhuangtao committed Dec 29, 2023
1 parent 8a6ab5b commit 604cec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/soc/rockchip/rockchip_system_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 604cec4

Please sign in to comment.