aboutsummaryrefslogtreecommitdiff
path: root/drivers/serial/serial_stm32x7.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/serial_stm32x7.c')
-rw-r--r--drivers/serial/serial_stm32x7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_stm32x7.c b/drivers/serial/serial_stm32x7.c
index 1907cef5b34..bdabf87e50e 100644
--- a/drivers/serial/serial_stm32x7.c
+++ b/drivers/serial/serial_stm32x7.c
@@ -110,7 +110,7 @@ static int stm32_serial_ofdata_to_platdata(struct udevice *dev)
struct stm32x7_serial_platdata *plat = dev_get_platdata(dev);
fdt_addr_t addr;
- addr = dev_get_addr(dev);
+ addr = devfdt_get_addr(dev);
if (addr == FDT_ADDR_T_NONE)
return -EINVAL;