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:
parent
8a6ab5ba66
commit
604cec4004
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue