summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/serial_base_bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/serial_base_bus.c')
-rw-r--r--drivers/tty/serial/serial_base_bus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/serial_base_bus.c b/drivers/tty/serial/serial_base_bus.c
index 73c6ee540c83..281a2d5a7332 100644
--- a/drivers/tty/serial/serial_base_bus.c
+++ b/drivers/tty/serial/serial_base_bus.c
@@ -219,6 +219,8 @@ static int serial_base_add_one_prefcon(const char *match, const char *dev_name,
return ret;
}
+#endif
+
#ifdef __sparc__
/* Handle Sparc ttya and ttyb options as done in console_setup() */
@@ -317,8 +319,6 @@ int serial_base_add_preferred_console(struct uart_driver *drv,
return serial_base_add_one_prefcon(port_match, drv->dev_name, port->line);
}
-#endif
-
#ifdef CONFIG_SERIAL_8250_CONSOLE
/*