summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/serial/8250.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/drivers/serial/8250.c')
-rw-r--r--payloads/libpayload/drivers/serial/8250.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/serial/8250.c b/payloads/libpayload/drivers/serial/8250.c
index 1df34c41ea..f3d98a9b79 100644
--- a/payloads/libpayload/drivers/serial/8250.c
+++ b/payloads/libpayload/drivers/serial/8250.c
@@ -72,9 +72,9 @@ static void serial_write_reg(uint8_t val, int offset)
static void serial_hardware_init(int speed, int word_bits,
int parity, int stop_bits)
{
+#if !CONFIG(LP_PL011_SERIAL_CONSOLE)
unsigned char reg;
-#if !CONFIG(LP_PL011_SERIAL_CONSOLE)
/* Disable interrupts. */
serial_write_reg(0, 0x01);