mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
soc: rockchip: opp_select: avoid duplicate of_find_property
Only searches rockchip,pvtpll-table when bin-specific property is absent. Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com> Change-Id: Ic728e39851cdd8c32970d81249cf295a3b8d6aeb
This commit is contained in:
@@ -1411,10 +1411,10 @@ static void rockchip_init_pvtpll_table(struct device *dev,
|
||||
"rockchip,pvtpll-table-B%d", info->bin);
|
||||
prop = of_find_property(np, prop_name, NULL);
|
||||
}
|
||||
if (!prop)
|
||||
if (!prop) {
|
||||
sprintf(prop_name, "rockchip,pvtpll-table");
|
||||
|
||||
prop = of_find_property(np, prop_name, NULL);
|
||||
prop = of_find_property(np, prop_name, NULL);
|
||||
}
|
||||
if (!prop)
|
||||
goto out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user