Преглед на файлове

[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>
Paul Fulghum преди 20 години
родител
ревизия
69a4bf7c95
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      drivers/usb/serial/console.c

+ 1 - 1
drivers/usb/serial/console.c

@@ -54,7 +54,7 @@ static struct console usbcons;
  * serial.c code, except that the specifier is "ttyUSB" instead
  * serial.c code, except that the specifier is "ttyUSB" instead
  * of "ttyS".
  * 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;
 	struct usbcons_info *info = &usbcons_info;
 	int baud = 9600;
 	int baud = 9600;