Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69a4bf7c authored by Paul Fulghum's avatar Paul Fulghum Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: remove __init from usb_console_setup



This prevents an Oops if booted with "console=ttyUSB0" but without a
USB-serial dongle, and plugged one in afterwards.

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e853bf4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ static struct console usbcons;
 * serial.c code, except that the specifier is "ttyUSB" instead
 * of "ttyS".
 */
static int __init usb_console_setup(struct console *co, char *options)
static int usb_console_setup(struct console *co, char *options)
{
	struct usbcons_info *info = &usbcons_info;
	int baud = 9600;