aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/serio/serio.c
diff options
context:
space:
mode:
authorJiri Kosina <jikos@jikos.cz>2006-10-11 01:45:31 -0400
committerDmitry Torokhov <dtor@insightbb.com>2006-10-11 01:45:31 -0400
commit88aa0103e408616e433c209e80169ab8d6eda99e (patch)
treee3fa51949b0b38200c732a2f8796cb068d293a62 /drivers/input/serio/serio.c
parent4dfbb9d8c6cbfc32faa5c71145bd2a43e1f8237c (diff)
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.c6
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)
538 "serio%ld", (long)atomic_inc_return(&serio_no) - 1); 538 "serio%ld", (long)atomic_inc_return(&serio_no) - 1);
539 serio->dev.bus = &serio_bus; 539 serio->dev.bus = &serio_bus;
540 serio->dev.release = serio_release_port; 540 serio->dev.release = serio_release_port;
541 if (serio->parent) 541 if (serio->parent) {
542 serio->dev.parent = &serio->parent->dev; 542 serio->dev.parent = &serio->parent->dev;
543 serio->depth = serio->parent->depth + 1;
544 } else
545 serio->depth = 0;
546 lockdep_set_subclass(&serio->lock, serio->depth);
543} 547}
544 548
545/* 549/*