summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/input/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index 1d6d6c8593fd..6c34600e5ca6 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -710,8 +710,8 @@ static int evdev_disable_suspend_block(struct evdev *evdev,
spin_lock_irq(&client->buffer_lock);
client->use_wake_lock = false;
- wake_lock_destroy(&client->wake_lock);
spin_unlock_irq(&client->buffer_lock);
+ wake_lock_destroy(&client->wake_lock);
return 0;
}