]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/input/tsdev.c
[DLM] add lock timeouts and warnings [2/6]
[linux-2.6-omap-h63xx.git] / drivers / input / tsdev.c
index 5e5b5c91d75b1286451ff30b84ccf6985da12ff4..2db364898e15f434e852c304bbcb855e271de00b 100644 (file)
@@ -48,7 +48,6 @@
 #include <linux/init.h>
 #include <linux/input.h>
 #include <linux/major.h>
-#include <linux/smp_lock.h>
 #include <linux/random.h>
 #include <linux/time.h>
 #include <linux/device.h>
@@ -477,9 +476,9 @@ static void tsdev_disconnect(struct input_handle *handle)
 
        if (tsdev->open) {
                input_close_device(handle);
-               wake_up_interruptible(&tsdev->wait);
                list_for_each_entry(client, &tsdev->client_list, node)
                        kill_fasync(&client->fasync, SIGIO, POLL_HUP);
+               wake_up_interruptible(&tsdev->wait);
        } else
                tsdev_free(tsdev);
 }