Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37899
b: refs/heads/master
c: 6d2750c
h: refs/heads/master
i:
  37897: bc86ebb
  37895: 67c79ec
v: v3
  • Loading branch information
Dmitry Torokhov committed Sep 11, 2006
1 parent 3177f27 commit 76ec2cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: e38de678f6b19be3e46a678ec4deeaa7fa0fc140
refs/heads/master: 6d2750c167d47a97936cf4415165205f945c08f8
7 changes: 5 additions & 2 deletions trunk/drivers/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,9 +1014,12 @@ EXPORT_SYMBOL(input_register_device);
void input_unregister_device(struct input_dev *dev)
{
struct list_head *node, *next;
int code;

if (!dev)
return;
for (code = 0; code <= KEY_MAX; code++)
if (test_bit(code, dev->key))
input_report_key(dev, code, 0);
input_sync(dev);

del_timer_sync(&dev->timer);

Expand Down

0 comments on commit 76ec2cc

Please sign in to comment.