diff mbox series

[U-Boot,RESEND,1/6] rockchip: clk: rk3399: Convert to livetree

Message ID 1505230349-5412-2-git-send-email-philipp.tomsich@theobroma-systems.com
State Accepted
Commit 75c7859803a334a41c8bdf0a31cd1cd61f579076
Delegated to: Philipp Tomsich
Headers show
Series rockchip: enable live tree on the RK3399 and validate on the RK3399-Q7 | expand

Commit Message

Philipp Tomsich Sept. 12, 2017, 3:32 p.m. UTC
Update the clock driver for the RK3399  to support a live device tree.

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

 drivers/clk/rockchip/clk_rk3399.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Simon Glass Sept. 13, 2017, 4:26 a.m. UTC | #1
On 12 September 2017 at 09:32, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> Update the clock driver for the RK3399  to support a live device tree.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
>  drivers/clk/rockchip/clk_rk3399.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Philipp Tomsich Sept. 13, 2017, 10:29 a.m. UTC | #2
> Update the clock driver for the RK3399  to support a live device tree.
> 
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  drivers/clk/rockchip/clk_rk3399.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Applied to u-boot-rockchip, thanks!
diff mbox series

Patch

diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c
index 3edafea..04f0b3f 100644
--- a/drivers/clk/rockchip/clk_rk3399.c
+++ b/drivers/clk/rockchip/clk_rk3399.c
@@ -975,7 +975,7 @@  static int rk3399_clk_ofdata_to_platdata(struct udevice *dev)
 #if !CONFIG_IS_ENABLED(OF_PLATDATA)
 	struct rk3399_clk_priv *priv = dev_get_priv(dev);
 
-	priv->cru = (struct rk3399_cru *)devfdt_get_addr(dev);
+	priv->cru = dev_read_addr_ptr(dev);
 #endif
 	return 0;
 }
@@ -1159,7 +1159,7 @@  static int rk3399_pmuclk_ofdata_to_platdata(struct udevice *dev)
 #if !CONFIG_IS_ENABLED(OF_PLATDATA)
 	struct rk3399_pmuclk_priv *priv = dev_get_priv(dev);
 
-	priv->pmucru = (struct rk3399_pmucru *)devfdt_get_addr(dev);
+	priv->pmucru = dev_read_addr_ptr(dev);
 #endif
 	return 0;
 }