summaryrefslogtreecommitdiff
path: root/arch/nios2/kernel/early_printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/kernel/early_printk.c')
-rw-r--r--arch/nios2/kernel/early_printk.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/nios2/kernel/early_printk.c b/arch/nios2/kernel/early_printk.c
index c08e4c1486fc..4a7bb98f744c 100644
--- a/arch/nios2/kernel/early_printk.c
+++ b/arch/nios2/kernel/early_printk.c
@@ -81,8 +81,11 @@ static void early_console_write(struct console *con, const char *s, unsigned n)
}
#else
-# error Neither SERIAL_ALTERA_JTAGUART_CONSOLE nor SERIAL_ALTERA_UART_CONSOLE \
-selected
+
+static void early_console_write(struct console *con, const char *s, unsigned n)
+{
+}
+
#endif
static struct console early_console_prom = {