mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Don't check for ohci/uhci to be loaded, check for the usb module.
This commit is contained in:
parent
9f25b65fb8
commit
5bfc478e32
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65364
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user