diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2023-10-27 16:43:01 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@foss.st.com> | 2023-11-13 10:55:38 +0100 |
commit | 6261cf6abde2d7972332b018a64dfb37c75176b2 (patch) | |
tree | c2ae99deda86b95edb3f35071a56c5e566b8d73f /drivers/serial/serial_stm32.h | |
parent | 3e0b12af8ad0a8e2e918982bae37d656048149e2 (diff) |
serial: stm32: Fix AARCH64 compilation warnings
When building with AARCH64 defconfig, we got warnings, fix them
by using registers base address defined as void __iomem * instead of
fdt_addr_t.
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'drivers/serial/serial_stm32.h')
-rw-r--r-- | drivers/serial/serial_stm32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_stm32.h b/drivers/serial/serial_stm32.h index b7e7a90b931..d2c92ba48ea 100644 --- a/drivers/serial/serial_stm32.h +++ b/drivers/serial/serial_stm32.h @@ -49,7 +49,7 @@ struct stm32_uart_info stm32h7_info = { /* Information about a serial port */ struct stm32x7_serial_plat { - fdt_addr_t base; /* address of registers in physical memory */ + void __iomem *base; /* address of registers in physical memory */ struct stm32_uart_info *uart_info; unsigned long int clock_rate; }; |