Commit 393fce22 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix build error in drivers/usb/serial/console.c

Thanks to Adrian Bunk <bunk@fs.tum.de> for pointing this out.
parent bd7b6c43
...@@ -137,7 +137,7 @@ static int __init usb_console_setup(struct console *co, char *options) ...@@ -137,7 +137,7 @@ static int __init usb_console_setup(struct console *co, char *options)
/* grab the first serial port that happens to be connected */ /* grab the first serial port that happens to be connected */
serial = usb_serial_get_by_index(0); serial = usb_serial_get_by_index(0);
if (serial_paranoia_check (serial, __FUNCTION__)) { if (serial == NULL) {
/* no device is connected yet, sorry :( */ /* no device is connected yet, sorry :( */
err ("No USB device connected to ttyUSB0"); err ("No USB device connected to ttyUSB0");
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment