diff options
Diffstat (limited to 'drivers/usb/serial/pl2303.c')
-rw-r--r-- | drivers/usb/serial/pl2303.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index bc800c8787a8..6c083d4e2c9b 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -159,7 +159,7 @@ static struct pl2303_buf *pl2303_buf_alloc(unsigned int size) | |||
159 | if (size == 0) | 159 | if (size == 0) |
160 | return NULL; | 160 | return NULL; |
161 | 161 | ||
162 | pb = (struct pl2303_buf *)kmalloc(sizeof(struct pl2303_buf), GFP_KERNEL); | 162 | pb = kmalloc(sizeof(struct pl2303_buf), GFP_KERNEL); |
163 | if (pb == NULL) | 163 | if (pb == NULL) |
164 | return NULL; | 164 | return NULL; |
165 | 165 | ||
@@ -455,7 +455,7 @@ static int pl2303_chars_in_buffer(struct usb_serial_port *port) | |||
455 | } | 455 | } |
456 | 456 | ||
457 | static void pl2303_set_termios(struct usb_serial_port *port, | 457 | static void pl2303_set_termios(struct usb_serial_port *port, |
458 | struct termios *old_termios) | 458 | struct ktermios *old_termios) |
459 | { | 459 | { |
460 | struct usb_serial *serial = port->serial; | 460 | struct usb_serial *serial = port->serial; |
461 | struct pl2303_private *priv = usb_get_serial_port_data(port); | 461 | struct pl2303_private *priv = usb_get_serial_port_data(port); |
@@ -687,7 +687,7 @@ static void pl2303_close(struct usb_serial_port *port, struct file *filp) | |||
687 | 687 | ||
688 | static int pl2303_open(struct usb_serial_port *port, struct file *filp) | 688 | static int pl2303_open(struct usb_serial_port *port, struct file *filp) |
689 | { | 689 | { |
690 | struct termios tmp_termios; | 690 | struct ktermios tmp_termios; |
691 | struct usb_serial *serial = port->serial; | 691 | struct usb_serial *serial = port->serial; |
692 | struct pl2303_private *priv = usb_get_serial_port_data(port); | 692 | struct pl2303_private *priv = usb_get_serial_port_data(port); |
693 | unsigned char *buf; | 693 | unsigned char *buf; |
@@ -1118,6 +1118,7 @@ static struct usb_serial_driver pl2303_device = { | |||
1118 | .name = "pl2303", | 1118 | .name = "pl2303", |
1119 | }, | 1119 | }, |
1120 | .id_table = id_table, | 1120 | .id_table = id_table, |
1121 | .usb_driver = &pl2303_driver, | ||
1121 | .num_interrupt_in = NUM_DONT_CARE, | 1122 | .num_interrupt_in = NUM_DONT_CARE, |
1122 | .num_bulk_in = 1, | 1123 | .num_bulk_in = 1, |
1123 | .num_bulk_out = 1, | 1124 | .num_bulk_out = 1, |