diff options
| author | David S. Miller <davem@davemloft.net> | 2009-03-27 20:19:16 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2009-03-27 20:19:16 -0400 |
| commit | a83398570e17af6bb81eb94f4f5dd356bd2828d8 (patch) | |
| tree | 5b5c7c3a56898485479291b7c964a1f3887d469c /drivers/usb/serial/generic.c | |
| parent | f9384d41c02408dd404aa64d66d0ef38adcf6479 (diff) | |
| parent | 0b4d569de222452bcb55a4a536ade6cf4d8d1e30 (diff) | |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Diffstat (limited to 'drivers/usb/serial/generic.c')
| -rw-r--r-- | drivers/usb/serial/generic.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 814909f1ee63..9d57cace3731 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c | |||
| @@ -177,14 +177,6 @@ int usb_serial_generic_resume(struct usb_serial *serial) | |||
| 177 | struct usb_serial_port *port; | 177 | struct usb_serial_port *port; |
| 178 | int i, c = 0, r; | 178 | int i, c = 0, r; |
| 179 | 179 | ||
| 180 | #ifdef CONFIG_PM | ||
| 181 | /* | ||
| 182 | * If this is an autoresume, don't submit URBs. | ||
| 183 | * They will be submitted in the open function instead. | ||
| 184 | */ | ||
| 185 | if (serial->dev->auto_pm) | ||
| 186 | return 0; | ||
| 187 | #endif | ||
| 188 | for (i = 0; i < serial->num_ports; i++) { | 180 | for (i = 0; i < serial->num_ports; i++) { |
| 189 | port = serial->port[i]; | 181 | port = serial->port[i]; |
| 190 | if (port->port.count && port->read_urb) { | 182 | if (port->port.count && port->read_urb) { |
| @@ -196,6 +188,7 @@ int usb_serial_generic_resume(struct usb_serial *serial) | |||
| 196 | 188 | ||
| 197 | return c ? -EIO : 0; | 189 | return c ? -EIO : 0; |
| 198 | } | 190 | } |
| 191 | EXPORT_SYMBOL_GPL(usb_serial_generic_resume); | ||
| 199 | 192 | ||
| 200 | void usb_serial_generic_close(struct tty_struct *tty, | 193 | void usb_serial_generic_close(struct tty_struct *tty, |
| 201 | struct usb_serial_port *port, struct file *filp) | 194 | struct usb_serial_port *port, struct file *filp) |
