]> git.sur5r.net Git - u-boot/commitdiff
rockchip: clk: rk1108: convert to use live dt
authorKever Yang <kever.yang@rock-chips.com>
Sun, 11 Feb 2018 03:53:10 +0000 (11:53 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 13 Mar 2018 17:12:35 +0000 (18:12 +0100)
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>
drivers/clk/rockchip/clk_rv1108.c

index 224c81355ee4ad563c18f44753596057c0b59db7..958fc78592648223de4636e6951cf63fa0312f4e 100644 (file)
@@ -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);