soc: rockchip: opp_select: Fix safe rate error

Replace tmp_safe_rate type with unsigned long.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I6677eea0a76448d58d0ef1e23ceb0cfcf393c80a
This commit is contained in:
Finley Xiao
2022-02-09 15:44:46 +08:00
parent 53e774ac86
commit c572fc0487

View File

@@ -934,8 +934,9 @@ static int rockchip_adjust_opp_by_irdrop(struct device *dev,
struct sel_table *irdrop_table = NULL;
struct opp_table *opp_table;
struct dev_pm_opp *opp;
unsigned long tmp_safe_rate = 0;
int evb_irdrop = 0, board_irdrop, delta_irdrop;
int tmp_safe_rate = 0, opp_rate, i, ret = 0;
int opp_rate, i, ret = 0;
u32 max_volt = UINT_MAX;
bool reach_max_volt = false;