mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
rockchip: clk: rk3328: 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
995cde1f9c
commit
08516431cf
1 changed files with 1 additions and 1 deletions
|
@ -767,7 +767,7 @@ static int rk3328_clk_ofdata_to_platdata(struct udevice *dev)
|
|||
{
|
||||
struct rk3328_clk_priv *priv = dev_get_priv(dev);
|
||||
|
||||
priv->cru = (struct rk3328_cru *)devfdt_get_addr(dev);
|
||||
priv->cru = dev_read_addr_ptr(dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue