diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sound/midi/midi.c | 6 | ||||
-rw-r--r-- | sys/dev/sound/midi/sequencer.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/sound/midi/midi.c b/sys/dev/sound/midi/midi.c index da5424c..d068f58 100644 --- a/sys/dev/sound/midi/midi.c +++ b/sys/dev/sound/midi/midi.c @@ -324,8 +324,8 @@ midi_init(kobj_class_t cls, int unit, int channel, void *cookie) if (!inqsize && !outqsize) goto err1; - mtx_init(&m->lock, "raw midi", 0, 0); - mtx_init(&m->qlock, "q raw midi", 0, 0); + mtx_init(&m->lock, "raw midi", NULL, 0); + mtx_init(&m->qlock, "q raw midi", NULL, 0); mtx_lock(&m->lock); mtx_lock(&m->qlock); @@ -1393,7 +1393,7 @@ midi_destroy(struct snd_midi *m, int midiuninit) static int midi_load() { - mtx_init(&midistat_lock, "midistat lock", 0, 0); + mtx_init(&midistat_lock, "midistat lock", NULL, 0); TAILQ_INIT(&midi_devs); /* Initialize the queue. */ midistat_dev = make_dev(&midistat_cdevsw, diff --git a/sys/dev/sound/midi/sequencer.c b/sys/dev/sound/midi/sequencer.c index 6af7662..d9bf387 100644 --- a/sys/dev/sound/midi/sequencer.c +++ b/sys/dev/sound/midi/sequencer.c @@ -546,7 +546,7 @@ seq_addunit(void) scp->flags = 0; - mtx_init(&scp->seq_lock, "seqflq", 0, 0); + mtx_init(&scp->seq_lock, "seqflq", NULL, 0); cv_init(&scp->state_cv, "seqstate"); cv_init(&scp->empty_cv, "seqempty"); cv_init(&scp->reset_cv, "seqtimer"); @@ -692,7 +692,7 @@ seq_modevent(module_t mod, int type, void *data) switch (type) { case MOD_LOAD: - mtx_init(&seqinfo_mtx, "seqmod", 0, 0); + mtx_init(&seqinfo_mtx, "seqmod", NULL, 0); retval = seq_addunit(); break; |