Module Name:    src
Committed By:   thorpej
Date:           Mon Apr 26 21:54:56 UTC 2021

Modified Files:
        src/sys/dev: midi.c

Log Message:
midi_attach_mi(): Be explicit about using the "midibus" interface attribute,
as the caller may be a device that carries more than one.


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/sys/dev/midi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/midi.c
diff -u src/sys/dev/midi.c:1.92 src/sys/dev/midi.c:1.93
--- src/sys/dev/midi.c:1.92	Sat Apr 24 23:36:52 2021
+++ src/sys/dev/midi.c	Mon Apr 26 21:54:56 2021
@@ -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 *
 	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 */

Reply via email to