diff options
| author | thorpej <thorpej@NetBSD.org> | 2021-04-26 21:54:56 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2021-04-26 21:54:56 +0000 |
| commit | e50bd17aeb464b6518cd76f20feefc382211b0f5 (patch) | |
| tree | 3d82bdbae0e783e8e9395cb4c6bba907f0b374dc /sys/dev | |
| parent | 879c3be8824a52b8d6e1866beb0c8117f38008e3 (diff) | |
midi_attach_mi(): Be explicit about using the "midibus" interface attribute,
as the caller may be a device that carries more than one.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/midi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c index 9f4524d98c0..6ca36002481 100644 --- a/sys/dev/midi.c +++ b/sys/dev/midi.c @@ -1,4 +1,4 @@ -/* $NetBSD: midi.c,v 1.92 2021/04/24 23:36:52 thorpej Exp $ */ +/* $NetBSD: midi.c,v 1.93 2021/04/26 21:54:56 thorpej Exp $ */ /* * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.92 2021/04/24 23:36:52 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.93 2021/04/26 21:54:56 thorpej Exp $"); #ifdef _KERNEL_OPT #include "midi.h" @@ -1895,7 +1895,9 @@ midi_attach_mi(const struct midi_hw_if *mhwp, void *hdlp, device_t dev) arg.type = AUDIODEV_TYPE_MIDI; arg.hwif = mhwp; arg.hdl = hdlp; - return (config_found(dev, &arg, audioprint, CFARG_EOL)); + return (config_found(dev, &arg, audioprint, + CFARG_IATTR, "midibus", + CFARG_EOL)); } #endif /* NMIDI > 0 || NMIDIBUS > 0 */ |
