soc: rockchip: opp_select: Fix of_device_id NULL when get soc info

Change-Id: I8a2d96c1f038bf4f288ded9f7edc944ccbac7950
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
Finley Xiao
2018-06-27 09:12:18 +08:00
committed by Tao Huang
parent a3d8ee5a91
commit 166cdaf4b0

View File

@@ -770,7 +770,7 @@ int rockchip_init_opp_table(struct device *dev,
}
of_node_put(np);
rockchip_get_soc_info(dev, NULL, &bin, &process);
rockchip_get_soc_info(dev, matches, &bin, &process);
rockchip_get_scale_volt_sel(dev, lkg_name, reg_name, bin, process,
&scale, &volt_sel);
rockchip_set_opp_info(dev, process, volt_sel);