From: Kever Yang Date: Sun, 11 Feb 2018 03:53:10 +0000 (+0800) Subject: rockchip: clk: rk1108: convert to use live dt X-Git-Tag: v2018.05-rc1~136^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bbfef40f92983fd0ccd72577020a434d04165400;p=u-boot rockchip: clk: rk1108: 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_rv1108.c b/drivers/clk/rockchip/clk_rv1108.c index 224c81355e..958fc78592 100644 --- a/drivers/clk/rockchip/clk_rv1108.c +++ b/drivers/clk/rockchip/clk_rv1108.c @@ -213,7 +213,7 @@ static int rv1108_clk_probe(struct udevice *dev) { struct rv1108_clk_priv *priv = dev_get_priv(dev); - priv->cru = (struct rv1108_cru *)devfdt_get_addr(dev); + priv->cru = dev_read_addr_ptr(dev); rkclk_init(priv->cru);