summaryrefslogtreecommitdiff
path: root/drivers/clk/rockchip/clk_rk322x.c
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2018-02-11 11:53:07 +0800
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2018-03-13 18:12:34 +0100
commit99b8553cb8b302ff3fec639644fa12ccb85f7734 (patch)
treeb283543bb0a479d58a79f1861262a0cb735634bc /drivers/clk/rockchip/clk_rk322x.c
parentaca456471f9e07398b2d4d53dcfd461f768f49af (diff)
rockchip: clk: rk322x: convert to use live dt
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>
Diffstat (limited to 'drivers/clk/rockchip/clk_rk322x.c')
-rw-r--r--drivers/clk/rockchip/clk_rk322x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c
index 4e6d2f0834..ebcab73002 100644
--- a/drivers/clk/rockchip/clk_rk322x.c
+++ b/drivers/clk/rockchip/clk_rk322x.c
@@ -475,7 +475,7 @@ static int rk322x_clk_ofdata_to_platdata(struct udevice *dev)
{
struct rk322x_clk_priv *priv = dev_get_priv(dev);
- priv->cru = (struct rk322x_cru *)devfdt_get_addr(dev);
+ priv->cru = dev_read_addr_ptr(dev);
return 0;
}