diff options
-rw-r--r-- | sys/dev/usb/usb.h | 5 | ||||
-rw-r--r-- | usr.sbin/usbd/usbd.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h index 71d903b..8982a4f 100644 --- a/sys/dev/usb/usb.h +++ b/sys/dev/usb/usb.h @@ -65,9 +65,8 @@ MALLOC_DECLARE(M_USBHC); #endif /* __FreeBSD__ */ /* these three defines are used by usbd to autoload the usb kld */ -#define USB_KLD "usb" -#define USB_OHCI "ohci/usb" -#define USB_UHCI "uhci/usb" +#define USB_KLD "usb" /* name of usb module */ +#define USB_UHUB "usb/uhub" /* root hub */ #define USB_MAX_DEVICES 128 #define USB_START_ADDR 0 diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c index ecf1001..033c22c 100644 --- a/usr.sbin/usbd/usbd.c +++ b/usr.sbin/usbd/usbd.c @@ -902,9 +902,8 @@ main(int argc, char **argv) int itimeout = TIMEOUT; /* timeout for select */ struct timeval tv; - if (modfind(USB_OHCI) < 0 && modfind(USB_UHCI) < 0) { - if (kldload(USB_KLD) < 0 || - (modfind(USB_OHCI) < 0 && modfind(USB_UHCI) < 0)) { + if (modfind(USB_UHUB) < 0) { + if (kldload(USB_KLD) < 0 || modfind(USB_UHUB) < 0) { perror(USB_KLD ": Kernel module not available"); return 1; } |