mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
soc: rockchip: rockchip_system_monitor: Fix opp_info NULL pointer
Fixes: feecbd010e ("soc: rockchip: rockchip_system_monitor: Add support to use low temp pvtpll config")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I17f5dbc2cd2da487f7e5c9f81a89520c6eb53799
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user