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

index 6451c95a320cc2f88f29dd75c0075cd21fd35a91..ad8df5a45902fe450064c5ada8e994d75b95394d 100644 (file)
@@ -541,7 +541,7 @@ static int rk3188_clk_ofdata_to_platdata(struct udevice *dev)
 #if !CONFIG_IS_ENABLED(OF_PLATDATA)
        struct rk3188_clk_priv *priv = dev_get_priv(dev);
 
-       priv->cru = (struct rk3188_cru *)devfdt_get_addr(dev);
+       priv->cru = dev_read_addr_ptr(dev);
 #endif
 
        return 0;