diff --git a/drivers/soc/rockchip/rockchip_opp_select.c b/drivers/soc/rockchip/rockchip_opp_select.c index 6bc917b56fbc..e7ce13c5295d 100644 --- a/drivers/soc/rockchip/rockchip_opp_select.c +++ b/drivers/soc/rockchip/rockchip_opp_select.c @@ -1179,6 +1179,7 @@ int rockchip_init_opp_table(struct device *dev, struct rockchip_opp_info *info, info->num_clks = num_clks; } if (info->data && info->data->set_read_margin) { + info->current_rm = UINT_MAX; info->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); if (IS_ERR(info->grf)) info->grf = NULL; diff --git a/include/soc/rockchip/rockchip_opp_select.h b/include/soc/rockchip/rockchip_opp_select.h index 3ae160cfb08b..27bc77ea1efa 100644 --- a/include/soc/rockchip/rockchip_opp_select.h +++ b/include/soc/rockchip/rockchip_opp_select.h @@ -29,6 +29,7 @@ struct rockchip_opp_info { struct regmap *grf; struct clk_bulk_data *clks; int num_clks; + u32 current_rm; }; #if IS_ENABLED(CONFIG_ROCKCHIP_OPP)