Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185403
b: refs/heads/master
c: 7650cd9
h: refs/heads/master
i:
  185401: 621abf8
  185399: 72c411e
v: v3
  • Loading branch information
Elina Pasheva authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 4e9e147 commit d8933fe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 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: 05197921ff3dad52d99fd1647974c57d9c28d40e
refs/heads/master: 7650cd9678df29b01d1e46a9d2ce7e5d8c72b3ce
30 changes: 20 additions & 10 deletions trunk/drivers/usb/serial/sierra.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,16 +304,6 @@ static const struct usb_device_id id_table[] = {
};
MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver sierra_driver = {
.name = "sierra",
.probe = usb_serial_probe,
.disconnect = usb_serial_disconnect,
.suspend = usb_serial_suspend,
.resume = usb_serial_resume,
.id_table = id_table,
.no_dynamic_id = 1,
.supports_autosuspend = 1,
};

struct sierra_port_private {
spinlock_t lock; /* lock the structure */
Expand Down Expand Up @@ -1061,11 +1051,31 @@ static int sierra_resume(struct usb_serial *serial)

return ec ? -EIO : 0;
}

static int sierra_reset_resume(struct usb_interface *intf)
{
struct usb_serial *serial = usb_get_intfdata(intf);
dev_err(&serial->dev->dev, "%s\n", __func__);
return usb_serial_resume(intf);
}
#else
#define sierra_suspend NULL
#define sierra_resume NULL
#define sierra_reset_resume NULL
#endif

static struct usb_driver sierra_driver = {
.name = "sierra",
.probe = usb_serial_probe,
.disconnect = usb_serial_disconnect,
.suspend = usb_serial_suspend,
.resume = usb_serial_resume,
.reset_resume = sierra_reset_resume,
.id_table = id_table,
.no_dynamic_id = 1,
.supports_autosuspend = 1,
};

static struct usb_serial_driver sierra_device = {
.driver = {
.owner = THIS_MODULE,
Expand Down

0 comments on commit d8933fe

Please sign in to comment.