rockchip: clk: rk3288: convert to use live dt
authorKever Yang <kever.yang@rock-chips.com>
Sun, 11 Feb 2018 03:53:08 +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_rk3288.c

index 552a71a82faf86db0aa022c48dba64ff173441d9..3a36d04096b03c6e58278a2308eb6c624b4aab8b 100644 (file)
@@ -906,7 +906,7 @@ static int rk3288_clk_ofdata_to_platdata(struct udevice *dev)
 #if !CONFIG_IS_ENABLED(OF_PLATDATA)
        struct rk3288_clk_priv *priv = dev_get_priv(dev);
 
-       priv->cru = (struct rk3288_cru *)devfdt_get_addr(dev);
+       priv->cru = dev_read_addr_ptr(dev);
 #endif
 
        return 0;