]> git.sur5r.net Git - u-boot/commitdiff
rockchip: clk: rk322x: convert to use live dt
authorKever Yang <kever.yang@rock-chips.com>
Sun, 11 Feb 2018 03:53:07 +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_rk322x.c

index 4e6d2f0834f15c6f1c0beb7f76884cb4353c9ac0..ebcab73002d8ca9fe021aa87c63af088124919b9 100644 (file)
@@ -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;
 }