aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/midi
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-02-21 21:10:55 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-02-21 21:10:55 +0000
commitdc08ffec870569914f44bcf26aa838310e343764 (patch)
tree0896a7d99c90ad922a1e4b41f052d155256cb97e /sys/dev/sound/midi
parentc33f7bb853b2c9fc395b43274891a8975a675553 (diff)
Notes
Diffstat (limited to 'sys/dev/sound/midi')
-rw-r--r--sys/dev/sound/midi/midi.c2
-rw-r--r--sys/dev/sound/midi/sequencer.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sound/midi/midi.c b/sys/dev/sound/midi/midi.c
index 2da6415dee82..a9d018496bd7 100644
--- a/sys/dev/sound/midi/midi.c
+++ b/sys/dev/sound/midi/midi.c
@@ -70,6 +70,8 @@ static int midi_readstatus(char *buf, int *ptr, struct uio *uio);
#define CDEV_MAJOR MIDI_CDEV_MAJOR
static struct cdevsw midi_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = midiopen,
.d_close = midiclose,
.d_read = midiread,
diff --git a/sys/dev/sound/midi/sequencer.c b/sys/dev/sound/midi/sequencer.c
index 17c79efaaaf2..bea493616d40 100644
--- a/sys/dev/sound/midi/sequencer.c
+++ b/sys/dev/sound/midi/sequencer.c
@@ -135,6 +135,8 @@ static d_poll_t seqpoll;
#define CDEV_MAJOR SEQ_CDEV_MAJOR
static struct cdevsw seq_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = seqopen,
.d_close = seqclose,
.d_read = seqread,