diff options
author | Dan Carpenter <error27@gmail.com> | 2011-07-20 02:16:29 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-07-20 02:18:09 -0400 |
commit | 6eab7ce65a4e6fae1d2cb5d866515ed288f2fdcc (patch) | |
tree | ba3507edbb88417a97fcbce975b5d14687684089 /drivers/input/misc/kxtj9.c | |
parent | 4fd9fcf7c1ee6c339504525b43ad5e77334ff1b5 (diff) |
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>
Diffstat (limited to 'drivers/input/misc/kxtj9.c')
-rw-r--r-- | drivers/input/misc/kxtj9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/kxtj9.c b/drivers/input/misc/kxtj9.c index 6c96dc3a3c8f..c456f63b6bae 100644 --- a/drivers/input/misc/kxtj9.c +++ b/drivers/input/misc/kxtj9.c | |||
@@ -362,7 +362,7 @@ static ssize_t kxtj9_set_poll(struct device *dev, struct device_attribute *attr, | |||
362 | return error; | 362 | return error; |
363 | 363 | ||
364 | /* Lock the device to prevent races with open/close (and itself) */ | 364 | /* Lock the device to prevent races with open/close (and itself) */ |
365 | mutex_unlock(&input_dev->mutex); | 365 | mutex_lock(&input_dev->mutex); |
366 | 366 | ||
367 | disable_irq(client->irq); | 367 | disable_irq(client->irq); |
368 | 368 | ||