[U-Boot] [PATCH 08/18] rockchip: timer: Convert to livetree

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Wed Aug 16 17:32:23 UTC 2017


Update the Rockchip timer driver to support a live device tree.

Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
---

 drivers/timer/rockchip_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/timer/rockchip_timer.c b/drivers/timer/rockchip_timer.c
index 74bb002..b375ffd 100644
--- a/drivers/timer/rockchip_timer.c
+++ b/drivers/timer/rockchip_timer.c
@@ -101,7 +101,7 @@ static int rockchip_clk_ofdata_to_platdata(struct udevice *dev)
 #if !CONFIG_IS_ENABLED(OF_PLATDATA)
 	struct rockchip_timer_priv *priv = dev_get_priv(dev);
 
-	priv->timer = (struct rk_timer *)devfdt_get_addr(dev);
+	priv->timer = (struct rk_timer *)dev_read_addr(dev);
 #endif
 
 	return 0;
-- 
2.1.4



More information about the U-Boot mailing list