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

index 510a00a3aaf32f0a33f54335c2d6bda87f4eb505..560222b96c4442afb11fd96518ee4667188db2a0 100644 (file)
@@ -321,7 +321,7 @@ static int rk3036_clk_probe(struct udevice *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);
 
        return 0;