rockchip: clk: rk322x: convert to use live dt
Use live dt api to get cru base addr. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
aca456471f
commit
99b8553cb8
@ -475,7 +475,7 @@ static int rk322x_clk_ofdata_to_platdata(struct udevice *dev)
|
||||
{
|
||||
struct rk322x_clk_priv *priv = dev_get_priv(dev);
|
||||
|
||||
priv->cru = (struct rk322x_cru *)devfdt_get_addr(dev);
|
||||
priv->cru = dev_read_addr_ptr(dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user