Skip to content

Commit 3ddbc42

Browse files
committed
Revert "serial: 8250: Fix add preferred console for serial8250_isa_init_ports()"
This reverts commit 4547cd7. Let's roll back all of the serial core and printk console changes that went into 6.10-rc1 as there still are problems with them that need to be sorted out. Link: https://lore.kernel.org/r/ZnpRozsdw6zbjqze@tlindgre-MOBL1 Reported-by: Petr Mladek <pmladek@suse.com> Reported-by: Tony Lindgren <tony@atomide.com> Cc: Jiri Slaby <jirislaby@kernel.org> Cc: John Ogness <john.ogness@linutronix.de> Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7312b74 commit 3ddbc42

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

drivers/tty/serial/serial_base.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ void serial_core_unregister_port(struct uart_driver *drv, struct uart_port *port
5555
int serial_base_add_preferred_console(struct uart_driver *drv,
5656
struct uart_port *port);
5757

58+
int serial_base_add_isa_preferred_console(const char *name, int idx);
59+
5860
#else
5961

6062
static inline
@@ -64,14 +66,6 @@ int serial_base_add_preferred_console(struct uart_driver *drv,
6466
return 0;
6567
}
6668

67-
#endif
68-
69-
#ifdef CONFIG_SERIAL_8250_CONSOLE
70-
71-
int serial_base_add_isa_preferred_console(const char *name, int idx);
72-
73-
#else
74-
7569
static inline
7670
int serial_base_add_isa_preferred_console(const char *name, int idx)
7771
{

drivers/tty/serial/serial_base_bus.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,6 @@ static int serial_base_add_one_prefcon(const char *match, const char *dev_name,
219219
return ret;
220220
}
221221

222-
#endif
223-
224222
#ifdef __sparc__
225223

226224
/* Handle Sparc ttya and ttyb options as done in console_setup() */
@@ -331,6 +329,15 @@ int serial_base_add_isa_preferred_console(const char *name, int idx)
331329
return serial_base_add_prefcon(name, idx);
332330
}
333331

332+
#else
333+
334+
int serial_base_add_isa_preferred_console(const char *name, int idx)
335+
{
336+
return 0;
337+
}
338+
339+
#endif
340+
334341
#endif
335342

336343
static int serial_base_init(void)

0 commit comments

Comments
 (0)