summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/macserial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/macintosh/macserial.c')
-rw-r--r--drivers/macintosh/macserial.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/macintosh/macserial.c b/drivers/macintosh/macserial.c
index 720932cc9..39a27107f 100644
--- a/drivers/macintosh/macserial.c
+++ b/drivers/macintosh/macserial.c
@@ -2584,7 +2584,9 @@ void unregister_serial(int line)
* ------------------------------------------------------------
*/
#ifdef CONFIG_SERIAL_CONSOLE
-
+#ifdef CONFIG_SERIAL
+#error Cannot build serial console with macserial and serial drivers
+#endif
/*
* Print a string to the serial port trying not to disturb
@@ -2843,7 +2845,7 @@ static struct console sercons = {
/*
* Register console.
*/
-long __init serial_console_init(long kmem_start, long kmem_end)
+void __init serial_console_init(void)
{
register_console(&sercons);
return kmem_start;