rockchip: clk: rk3036: 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
f95ab1fb6e
commit
7ae028b669
@ -321,7 +321,7 @@ static int rk3036_clk_probe(struct udevice *dev)
|
|||||||
{
|
{
|
||||||
struct rk3036_clk_priv *priv = dev_get_priv(dev);
|
struct rk3036_clk_priv *priv = dev_get_priv(dev);
|
||||||
|
|
||||||
priv->cru = (struct rk3036_cru *)devfdt_get_addr(dev);
|
priv->cru = dev_read_addr_ptr(dev);
|
||||||
rkclk_init(priv->cru);
|
rkclk_init(priv->cru);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user