Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63198
b: refs/heads/master
c: e31c188
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Jul 30, 2007
1 parent abb34fd commit c15bc44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 209b3cfd538e7d56d228cf6daf0b27e2cc26c6c2
refs/heads/master: e31c18804f584dd838a752f6628e8c15bd7a3372
15 changes: 8 additions & 7 deletions trunk/drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,16 +1077,17 @@ int usb_serial_suspend(struct usb_interface *intf, pm_message_t message)
struct usb_serial_port *port;
int i, r = 0;

if (serial) {
for (i = 0; i < serial->num_ports; ++i) {
port = serial->port[i];
if (port)
kill_traffic(port);
}
if (!serial) /* device has been disconnected */
return 0;

for (i = 0; i < serial->num_ports; ++i) {
port = serial->port[i];
if (port)
kill_traffic(port);
}

if (serial->type->suspend)
serial->type->suspend(serial, message);
r = serial->type->suspend(serial, message);

return r;
}
Expand Down

0 comments on commit c15bc44

Please sign in to comment.