Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Be explicit about the "eap" interface attribute ...



details:   https://anonhg.NetBSD.org/src/rev/3a28eca759c4
branches:  trunk
changeset: 378868:3a28eca759c4
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Apr 26 19:35:16 2021 +0000

description:
Be explicit about the "eap" interface attribute when attaching a "joy"
instance.

diffstat:

 sys/dev/pci/joy_eap.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 150285de85f6 -r 3a28eca759c4 sys/dev/pci/joy_eap.c
--- a/sys/dev/pci/joy_eap.c     Mon Apr 26 19:28:24 2021 +0000
+++ b/sys/dev/pci/joy_eap.c     Mon Apr 26 19:35:16 2021 +0000
@@ -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);
 



Home | Main Index | Thread Index | Old Index