summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2010-09-20 14:18:13 +0000
committerchristos <christos@NetBSD.org>2010-09-20 14:18:13 +0000
commit35f0b243af67cbfe4b3e2cbaff852739a135be9c (patch)
tree41a1e0bf1c8cce730d38136b43cb7e4ec62faceb /sys/dev
parent592d1c274adb98785feeb4f726c9cffee1043c65 (diff)
Use the control (not data) interface descriptor when looking at the
control interface endpoints! (from Anon Ymous)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/umodem_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/umodem_common.c b/sys/dev/usb/umodem_common.c
index 3494ad82f74..ca84baf2514 100644
--- a/sys/dev/usb/umodem_common.c
+++ b/sys/dev/usb/umodem_common.c
@@ -1,4 +1,4 @@
-/* $NetBSD: umodem_common.c,v 1.18 2010/06/27 10:41:26 kardel Exp $ */
+/* $NetBSD: umodem_common.c,v 1.19 2010/09/20 14:18:13 christos Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.18 2010/06/27 10:41:26 kardel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.19 2010/09/20 14:18:13 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -218,6 +218,7 @@ umodem_common_attach(device_ptr_t self, struct umodem_softc *sc,
sc->sc_ctl_notify = -1;
sc->sc_notify_pipe = NULL;
+ id = usbd_get_interface_descriptor(sc->sc_ctl_iface);
for (i = 0; i < id->bNumEndpoints; i++) {
ed = usbd_interface2endpoint_descriptor(sc->sc_ctl_iface, i);
if (ed == NULL)