Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140407
b: refs/heads/master
c: 0f6f140
h: refs/heads/master
i:
  140405: 1601d44
  140403: 72a479a
  140399: 53c1afa
v: v3
  • Loading branch information
Jiri Kosina committed Mar 25, 2009
1 parent bc16f5b commit 70f4534
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0361a28d3f9a4315a100c7b37ba0b55cfe15fe07
refs/heads/master: 0f6f1407e3e4a2cc4f602806d3c174473850f4da
5 changes: 5 additions & 0 deletions trunk/drivers/hid/usbhid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,7 @@ static void hid_cease_io(struct usbhid_device *usbhid)
flush_scheduled_work();
}

#ifdef CONFIG_PM
static int hid_suspend(struct usb_interface *intf, pm_message_t message)
{
struct hid_device *hid = usb_get_intfdata(intf);
Expand Down Expand Up @@ -1292,6 +1293,8 @@ static int hid_resume(struct usb_interface *intf)
return 0;
}

#endif /* CONFIG_PM */

/* Treat USB reset pretty much the same as suspend/resume */
static int hid_pre_reset(struct usb_interface *intf)
{
Expand Down Expand Up @@ -1353,9 +1356,11 @@ static struct usb_driver hid_driver = {
.name = "usbhid",
.probe = hid_probe,
.disconnect = hid_disconnect,
#ifdef CONFIG_PM
.suspend = hid_suspend,
.resume = hid_resume,
.reset_resume = hid_post_reset,
#endif
.pre_reset = hid_pre_reset,
.post_reset = hid_post_reset,
.id_table = hid_usb_ids,
Expand Down

0 comments on commit 70f4534

Please sign in to comment.