Be explicit about the "eap" interface attribute when attaching a "joy"

instance.
This commit is contained in:
thorpej 2021-04-26 19:35:16 +00:00
parent 7d96447586
commit 20d529dfab
1 changed files with 5 additions and 3 deletions

View File

@ -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 eap_gameport_args *gpa)
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);