/* This structure holds all of the individual device information */
struct opticon_private {
- struct usb_serial *serial;
struct usb_serial_port *port;
unsigned char *bulk_in_buffer;
struct urb *bulk_read_urb;
/* fake emulate a 16550 uart to make userspace code happy */
tmp.type = PORT_16550A;
- tmp.line = priv->serial->minor;
+ tmp.line = priv->port->serial->minor;
tmp.port = 0;
tmp.irq = 0;
tmp.flags = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
return -ENOMEM;
}
spin_lock_init(&priv->lock);
- priv->serial = serial;
priv->port = serial->port[0];
/* find our bulk endpoint */