Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114457
b: refs/heads/master
c: d92870d
h: refs/heads/master
i:
  114455: b08bdcd
v: v3
  • Loading branch information
Jiri Slaby authored and Jiri Kosina committed Oct 14, 2008
1 parent 060dab7 commit 70191a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: d1d3a5f6eaee337d793ab9ac28e696f0262c3c8a
refs/heads/master: d92870ddd248e8c2562a8c4047885d3ad221ece7
11 changes: 10 additions & 1 deletion trunk/drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1657,6 +1657,7 @@ static void hid_compat_load(struct work_struct *ws)
request_module("hid-dummy");
}
static DECLARE_WORK(hid_compat_work, hid_compat_load);
static struct workqueue_struct *hid_compat_wq;
#endif

static int __init hid_init(void)
Expand All @@ -1674,7 +1675,12 @@ static int __init hid_init(void)
goto err_bus;

#ifdef CONFIG_HID_COMPAT
schedule_work(&hid_compat_work);
hid_compat_wq = create_workqueue("hid_compat");
if (!hid_compat_wq) {
hidraw_exit();
goto err;
}
queue_work(hid_compat_wq, &hid_compat_work);
#endif

return 0;
Expand All @@ -1686,6 +1692,9 @@ static int __init hid_init(void)

static void __exit hid_exit(void)
{
#ifdef CONFIG_HID_COMPAT
destroy_workqueue(hid_compat_wq);
#endif
hidraw_exit();
bus_unregister(&hid_bus_type);
}
Expand Down

0 comments on commit 70191a8

Please sign in to comment.