Input: kxtj9 - fix locking typo in kxtj9_set_poll()

According to the comments we want to call mutex_lock() here instead
of mutex_unlock().  That makes more sense.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Dan Carpenter 2011-07-19 23:16:29 -07:00 committed by Dmitry Torokhov
parent 4fd9fcf7c1
commit 6eab7ce65a
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ static ssize_t kxtj9_set_poll(struct device *dev, struct device_attribute *attr,
return error;
/* Lock the device to prevent races with open/close (and itself) */
mutex_unlock(&input_dev->mutex);
mutex_lock(&input_dev->mutex);
disable_irq(client->irq);