summaryrefslogtreecommitdiffstats
path: root/usr.sbin/usbd/usbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/usbd/usbd.c')
-rw-r--r--usr.sbin/usbd/usbd.c5
1 files changed, 2 insertions, 3 deletions
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;
}
OpenPOWER on IntegriCloud