aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/core/seq/seq_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c
index d812dc886360..4260de90f36f 100644
--- a/sound/core/seq/seq_device.c
+++ b/sound/core/seq/seq_device.c
@@ -380,6 +380,12 @@ static struct ops_list * create_driver(char *id)
380 /* set up driver entry */ 380 /* set up driver entry */
381 strlcpy(ops->id, id, sizeof(ops->id)); 381 strlcpy(ops->id, id, sizeof(ops->id));
382 mutex_init(&ops->reg_mutex); 382 mutex_init(&ops->reg_mutex);
383 /*
384 * The ->reg_mutex locking rules are per-driver, so we create
385 * separate per-driver lock classes:
386 */
387 lockdep_set_class(&ops->reg_mutex, (struct lock_class_key *)id);
388
383 ops->driver = DRIVER_EMPTY; 389 ops->driver = DRIVER_EMPTY;
384 INIT_LIST_HEAD(&ops->dev_list); 390 INIT_LIST_HEAD(&ops->dev_list);
385 /* lock this instance */ 391 /* lock this instance */