From: Philipp Tomsich Date: Mon, 11 Sep 2017 20:04:18 +0000 (+0200) Subject: rockchip: clk: rk3368: Convert to livetree X-Git-Tag: v2017.11-rc1~87^2~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9a342f48a6c4debb1a43132c4b8ddc61c9f5d01d;p=oweals%2Fu-boot.git rockchip: clk: rk3368: Convert to livetree Update the clock driver for the RK3368 to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in clk_rk3368.c --- diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c index 0160d50c03..e2747816b9 100644 --- a/drivers/clk/rockchip/clk_rk3368.c +++ b/drivers/clk/rockchip/clk_rk3368.c @@ -485,7 +485,7 @@ static int rk3368_clk_ofdata_to_platdata(struct udevice *dev) #if !CONFIG_IS_ENABLED(OF_PLATDATA) struct rk3368_clk_priv *priv = dev_get_priv(dev); - priv->cru = (struct rk3368_cru *)devfdt_get_addr(dev); + priv->cru = dev_read_addr_ptr(dev); #endif return 0;