diff options
author | Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> | 2010-10-13 14:35:40 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-10-18 00:11:36 -0400 |
commit | f74eef95e33a07379aa2b950c7f313cbfd55ebbe (patch) | |
tree | be9f959dc8ec4053ec6161e3c9049de91c474239 /drivers/input/mousedev.c | |
parent | 2991a1ca6e9b13b639a82c0eec0cbc191bf1f42f (diff) |
Input: mousedev - correct lockdep annotation
When annotating mutex to avoid false lockdep reports we should not
be using MOUSEDEV_MIX as lock subclass but rather SINGLE_DEPTH_NESTING.
Signed-off-by: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mousedev.c')
-rw-r--r-- | drivers/input/mousedev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index d528a2dba064..98973340d042 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c | |||
@@ -866,7 +866,7 @@ static struct mousedev *mousedev_create(struct input_dev *dev, | |||
866 | spin_lock_init(&mousedev->client_lock); | 866 | spin_lock_init(&mousedev->client_lock); |
867 | mutex_init(&mousedev->mutex); | 867 | mutex_init(&mousedev->mutex); |
868 | lockdep_set_subclass(&mousedev->mutex, | 868 | lockdep_set_subclass(&mousedev->mutex, |
869 | minor == MOUSEDEV_MIX ? MOUSEDEV_MIX : 0); | 869 | minor == MOUSEDEV_MIX ? SINGLE_DEPTH_NESTING : 0); |
870 | init_waitqueue_head(&mousedev->wait); | 870 | init_waitqueue_head(&mousedev->wait); |
871 | 871 | ||
872 | if (minor == MOUSEDEV_MIX) | 872 | if (minor == MOUSEDEV_MIX) |