diff options
Diffstat (limited to 'drivers/input/joydev.c')
-rw-r--r-- | drivers/input/joydev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c index 9bcc5425049b..c83bfe8914ac 100644 --- a/drivers/input/joydev.c +++ b/drivers/input/joydev.c | |||
@@ -595,9 +595,9 @@ static void joydev_disconnect(struct input_handle *handle) | |||
595 | 595 | ||
596 | if (joydev->open) { | 596 | if (joydev->open) { |
597 | input_close_device(handle); | 597 | input_close_device(handle); |
598 | wake_up_interruptible(&joydev->wait); | ||
599 | list_for_each_entry(client, &joydev->client_list, node) | 598 | list_for_each_entry(client, &joydev->client_list, node) |
600 | kill_fasync(&client->fasync, SIGIO, POLL_HUP); | 599 | kill_fasync(&client->fasync, SIGIO, POLL_HUP); |
600 | wake_up_interruptible(&joydev->wait); | ||
601 | } else | 601 | } else |
602 | joydev_free(joydev); | 602 | joydev_free(joydev); |
603 | } | 603 | } |