diff options
Diffstat (limited to 'sys/dev/usb/utwitch.c')
| -rw-r--r-- | sys/dev/usb/utwitch.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/usb/utwitch.c b/sys/dev/usb/utwitch.c index 6045f1ef28a..2230211f092 100644 --- a/sys/dev/usb/utwitch.c +++ b/sys/dev/usb/utwitch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utwitch.c,v 1.9 2014/03/07 18:39:02 mpi Exp $ */ +/* $OpenBSD: utwitch.c,v 1.10 2014/03/19 08:59:37 mpi Exp $ */ /* * Copyright (c) 2010 Yojiro UO <yuo@nui.org> @@ -107,8 +107,10 @@ const struct cfattach utwitch_ca = { int utwitch_match(struct device *parent, void *match, void *aux) { - struct usb_attach_arg *uaa = aux; - struct uhidev_attach_arg *uha = (struct uhidev_attach_arg *)uaa; + struct uhidev_attach_arg *uha = aux; + + if (uha->reportid == UHIDEV_CLAIM_ALLREPORTID) + return (UMATCH_NONE); return (usb_lookup(utwitch_devs, uha->uaa->vendor, uha->uaa->product) != NULL ? UMATCH_VENDOR_PRODUCT : UMATCH_NONE); |
