diff options
Diffstat (limited to 'drivers/usb/serial/omninet.c')
-rw-r--r-- | drivers/usb/serial/omninet.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index a180b17d2432..dd706953b466 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #define BT_IGNITIONPRO_ID 0x2000 | 31 | #define BT_IGNITIONPRO_ID 0x2000 |
32 | 32 | ||
33 | /* function prototypes */ | 33 | /* function prototypes */ |
34 | static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port); | ||
35 | static void omninet_process_read_urb(struct urb *urb); | 34 | static void omninet_process_read_urb(struct urb *urb); |
36 | static void omninet_write_bulk_callback(struct urb *urb); | 35 | static void omninet_write_bulk_callback(struct urb *urb); |
37 | static int omninet_write(struct tty_struct *tty, struct usb_serial_port *port, | 36 | static int omninet_write(struct tty_struct *tty, struct usb_serial_port *port, |
@@ -60,7 +59,6 @@ static struct usb_serial_driver zyxel_omninet_device = { | |||
60 | .attach = omninet_attach, | 59 | .attach = omninet_attach, |
61 | .port_probe = omninet_port_probe, | 60 | .port_probe = omninet_port_probe, |
62 | .port_remove = omninet_port_remove, | 61 | .port_remove = omninet_port_remove, |
63 | .open = omninet_open, | ||
64 | .write = omninet_write, | 62 | .write = omninet_write, |
65 | .write_room = omninet_write_room, | 63 | .write_room = omninet_write_room, |
66 | .write_bulk_callback = omninet_write_bulk_callback, | 64 | .write_bulk_callback = omninet_write_bulk_callback, |
@@ -140,17 +138,6 @@ static int omninet_port_remove(struct usb_serial_port *port) | |||
140 | return 0; | 138 | return 0; |
141 | } | 139 | } |
142 | 140 | ||
143 | static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port) | ||
144 | { | ||
145 | struct usb_serial *serial = port->serial; | ||
146 | struct usb_serial_port *wport; | ||
147 | |||
148 | wport = serial->port[1]; | ||
149 | tty_port_tty_set(&wport->port, tty); | ||
150 | |||
151 | return usb_serial_generic_open(tty, port); | ||
152 | } | ||
153 | |||
154 | #define OMNINET_HEADERLEN 4 | 141 | #define OMNINET_HEADERLEN 4 |
155 | #define OMNINET_BULKOUTSIZE 64 | 142 | #define OMNINET_BULKOUTSIZE 64 |
156 | #define OMNINET_PAYLOADSIZE (OMNINET_BULKOUTSIZE - OMNINET_HEADERLEN) | 143 | #define OMNINET_PAYLOADSIZE (OMNINET_BULKOUTSIZE - OMNINET_HEADERLEN) |