[PATCH 2/2] x86/boot: Use BASE_BAUD from asm/serial.h

From: Thorsten Blum

Date: Fri Nov 13 2026 - 08:08:43 EST


Use BASE_BAUD from asm/serial.h instead of redefining it.

No functional change.

Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
---
arch/x86/boot/early_serial_console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/boot/early_serial_console.c b/arch/x86/boot/early_serial_console.c
index 39fcd551fc81..59471fea5018 100644
--- a/arch/x86/boot/early_serial_console.c
+++ b/arch/x86/boot/early_serial_console.c
@@ -3,6 +3,7 @@
* Serial port routines for use during early boot reporting. This code is
* included from both the compressed kernel and the regular kernel.
*/
+#include <asm/serial.h>
#include "boot.h"

#define DEFAULT_SERIAL_PORT 0x3f8 /* ttyS0 */
@@ -22,7 +23,6 @@
#define DLH 1 /* Divisor latch High */

#define DEFAULT_BAUD 9600
-#define BASE_BAUD (1843200 / 16)

static void early_serial_init(int port, int baud)
{