From: Kever Yang Date: Sun, 11 Feb 2018 03:53:07 +0000 (+0800) Subject: rockchip: clk: rk322x: convert to use live dt X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=99b8553cb8b302ff3fec639644fa12ccb85f7734;p=u-boot.git rockchip: clk: rk322x: convert to use live dt Use live dt api to get cru base addr. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c index 4e6d2f0834..ebcab73002 100644 --- a/drivers/clk/rockchip/clk_rk322x.c +++ b/drivers/clk/rockchip/clk_rk322x.c @@ -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; }