Skip to content

Commit

Permalink
[PATCH] USB: remove __init from usb_console_setup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Fulghum authored and Greg Kroah-Hartman committed Apr 14, 2006
1 parent e853bf4 commit 69a4bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 69a4bf7

Please sign in to comment.