diff options
Diffstat (limited to 'drivers/usb/serial/ir-usb.c')
| -rw-r--r-- | drivers/usb/serial/ir-usb.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index e59155c6607..4e2cda93da5 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c @@ -26,7 +26,7 @@   *	Introduced common header to be used also in USB Gadget Framework.   *	Still needs some other style fixes.   * - * 2007_Jun_21  Alan Cox <alan@redhat.com> + * 2007_Jun_21  Alan Cox <alan@lxorguk.ukuu.org.uk>   *	Minimal cleanups for some of the driver problens and tty layer abuse.   *	Still needs fixing to allow multiple dongles.   * @@ -465,11 +465,12 @@ static void ir_read_bulk_callback(struct urb *urb)  			ir_baud = *data & 0x0f;  		usb_serial_debug_data(debug, &port->dev, __func__,  						urb->actual_length, data); - 		tty = port->port.tty; +		tty = tty_port_tty_get(&port->port);  		if (tty_buffer_request_room(tty, urb->actual_length - 1)) {  			tty_insert_flip_string(tty, data+1, urb->actual_length - 1);  			tty_flip_buffer_push(tty);  		} +		tty_kref_put(tty);  		/*  		 * No break here. @@ -601,7 +602,8 @@ static int __init ir_init(void)  	if (retval)  		goto failed_usb_register; -	info(DRIVER_DESC " " DRIVER_VERSION); +	printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" +	       DRIVER_DESC "\n");  	return 0;  | 
