aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/renesas/clk-rcar-gen2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/renesas/clk-rcar-gen2.c')
-rw-r--r--drivers/clk/renesas/clk-rcar-gen2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/renesas/clk-rcar-gen2.c b/drivers/clk/renesas/clk-rcar-gen2.c
index 3ed0aa92cb8..16da10c8dd8 100644
--- a/drivers/clk/renesas/clk-rcar-gen2.c
+++ b/drivers/clk/renesas/clk-rcar-gen2.c
@@ -283,7 +283,7 @@ int gen2_clk_probe(struct udevice *dev)
u32 cpg_mode;
int ret;
- priv->base = (struct gen2_base *)devfdt_get_addr(dev);
+ priv->base = dev_read_addr_ptr(dev);
if (!priv->base)
return -EINVAL;