X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=drivers%2Fusb%2Fserial%2Fkobil_sct.c;h=6286baad9392a7c13dbb9a40d4d770156cee7cb0;hb=c197a8db59daf06dc5e77acd5a9681329cb22458;hp=deba28ec77e8e43cab07691bf17ed68624b9d517;hpb=7f268a2ba7c884a239713696238dd4207a57dd9a;p=linux-kernel-docs%2Flinux-2.6.git diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index deba28ec77..6286baad93 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c @@ -383,7 +383,7 @@ static void kobil_read_int_callback(struct urb *urb) return; } - tty = port->port.tty; + tty = tty_port_tty_get(&port->port); if (urb->actual_length) { /* BEGIN DEBUG */ @@ -405,6 +405,7 @@ static void kobil_read_int_callback(struct urb *urb) tty_insert_flip_string(tty, data, urb->actual_length); tty_flip_buffer_push(tty); } + tty_kref_put(tty); /* someone sets the dev to 0 if the close method has been called */ port->interrupt_in_urb->dev = port->serial->dev; @@ -743,8 +744,8 @@ static int __init kobil_init(void) if (retval) goto failed_usb_register; - info(DRIVER_VERSION " " DRIVER_AUTHOR); - info(DRIVER_DESC); + printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" + DRIVER_DESC "\n"); return 0; failed_usb_register: