diff options
author | Jiri Kosina <jikos@jikos.cz> | 2006-10-11 07:45:31 +0200 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-10-11 07:45:31 +0200 |
commit | 88aa0103e408616e433c209e80169ab8d6eda99e (patch) | |
tree | e3fa51949b0b38200c732a2f8796cb068d293a62 /drivers/input/serio/serio.c | |
parent | Lockdep: add lockdep_set_class_and_subclass() and lockdep_set_subclass() (diff) | |
download | linux-88aa0103e408616e433c209e80169ab8d6eda99e.tar.xz linux-88aa0103e408616e433c209e80169ab8d6eda99e.zip |
Input: serio - add lockdep annotations
Signed-off-by: Jiri Kosina <jikos@jikos.cz>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/serio/serio.c')
-rw-r--r-- | drivers/input/serio/serio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index 960fae3c3cea..480fdc5d20b3 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c @@ -538,8 +538,12 @@ static void serio_init_port(struct serio *serio) "serio%ld", (long)atomic_inc_return(&serio_no) - 1); serio->dev.bus = &serio_bus; serio->dev.release = serio_release_port; - if (serio->parent) + if (serio->parent) { serio->dev.parent = &serio->parent->dev; + serio->depth = serio->parent->depth + 1; + } else + serio->depth = 0; + lockdep_set_subclass(&serio->lock, serio->depth); } /* |