Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Paul Fulghum and committed by
Greg Kroah-Hartman
69a4bf7c e853bf4a

+1 -1
+1 -1
drivers/usb/serial/console.c
··· 54 54 * serial.c code, except that the specifier is "ttyUSB" instead 55 55 * of "ttyS". 56 56 */ 57 - static int __init usb_console_setup(struct console *co, char *options) 57 + static int usb_console_setup(struct console *co, char *options) 58 58 { 59 59 struct usbcons_info *info = &usbcons_info; 60 60 int baud = 9600;