aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/altera/clk-agilex.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/altera/clk-agilex.c')
-rw-r--r--drivers/clk/altera/clk-agilex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c
index 0042958f4c4..9927ada201f 100644
--- a/drivers/clk/altera/clk-agilex.c
+++ b/drivers/clk/altera/clk-agilex.c
@@ -553,7 +553,7 @@ static int socfpga_clk_ofdata_to_platdata(struct udevice *dev)
struct socfpga_clk_platdata *plat = dev_get_platdata(dev);
fdt_addr_t addr;
- addr = devfdt_get_addr(dev);
+ addr = dev_read_addr(dev);
if (addr == FDT_ADDR_T_NONE)
return -EINVAL;
plat->regs = (void __iomem *)addr;