From: Kever Yang Date: Sun, 11 Feb 2018 03:53:09 +0000 (+0800) Subject: rockchip: clk: rk3328: convert to use live dt X-Git-Tag: v2018.05-rc1~136^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=08516431cf09cb624d9ead6253d91d96bfef617a;p=oweals%2Fu-boot.git rockchip: clk: rk3328: 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_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c index 2ccc79851c..046b4e4c2f 100644 --- a/drivers/clk/rockchip/clk_rk3328.c +++ b/drivers/clk/rockchip/clk_rk3328.c @@ -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; }