From 55d4cd2aa8baf38b6037144a3feace4967a7db48 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 25 Mar 2020 11:27:49 -0500 Subject: [PATCH] arch: x86: Convert to new DT_INST macros Convert older DT_INST_ macro use the new include/devicetree.h DT_INST macro APIs. Signed-off-by: Kumar Gala --- arch/x86/core/early_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/core/early_serial.c b/arch/x86/core/early_serial.c index 6cf9dce5eeb..02f264141d3 100644 --- a/arch/x86/core/early_serial.c +++ b/arch/x86/core/early_serial.c @@ -10,7 +10,7 @@ /* Super-primitive 8250/16550 serial output-only driver, 115200 8n1 */ -#define PORT ((io_port_t)DT_INST_0_NS16550_BASE_ADDRESS) +#define PORT ((io_port_t)DT_REG_ADDR(DT_INST(0, ns16550))) #define REG_IER 0x01 /* Interrupt enable reg. */ #define REG_LCR 0x03 /* Line control reg. */