/* grab the first serial port that happens to be connected */
serial = usb_serial_get_by_index(0);
- if (serial_paranoia_check (serial, __FUNCTION__)) {
+ if (serial == NULL) {
/* no device is connected yet, sorry :( */
err ("No USB device connected to ttyUSB0");
return -ENODEV;
{
static struct usbcons_info *info = &usbcons_info;
struct usb_serial_port *port = info->port;
- struct usb_serial *serial = get_usb_serial (port, __FUNCTION__);
+ struct usb_serial *serial;
int retval = -ENODEV;
- if (!serial || !port)
+ if (!port)
return;
+ serial = port->serial;
if (count == 0)
return;