Module Name: src Committed By: thorpej Date: Mon Apr 26 19:35:16 UTC 2021
Modified Files: src/sys/dev/pci: joy_eap.c Log Message: Be explicit about the "eap" interface attribute when attaching a "joy" instance. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/joy_eap.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/pci/joy_eap.c diff -u src/sys/dev/pci/joy_eap.c:1.15 src/sys/dev/pci/joy_eap.c:1.16 --- src/sys/dev/pci/joy_eap.c:1.15 Sat Apr 24 23:36:57 2021 +++ src/sys/dev/pci/joy_eap.c Mon Apr 26 19:35:16 2021 @@ -1,7 +1,7 @@ -/* $NetBSD: joy_eap.c,v 1.15 2021/04/24 23:36:57 thorpej Exp $ */ +/* $NetBSD: joy_eap.c,v 1.16 2021/04/26 19:35:16 thorpej Exp $ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: joy_eap.c,v 1.15 2021/04/24 23:36:57 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: joy_eap.c,v 1.16 2021/04/26 19:35:16 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -59,7 +59,9 @@ eap_joy_attach(device_t eapdev, struct e aa.aa_aaa.type = AUDIODEV_TYPE_AUX; aa.aa_iot = gpa->gpa_iot; aa.aa_ioh = ioh; - joydev = config_found(eapdev, &aa, 0, CFARG_EOL); + joydev = config_found(eapdev, &aa, 0, + CFARG_IATTR, "eap", + CFARG_EOL); /* this cannot fail */ KASSERT(joydev != NULL);