summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/uhci_pci.c
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2015-04-13 19:13:51 +0000
committerneel <neel@FreeBSD.org>2015-04-13 19:13:51 +0000
commit2bb239d283a1a19c20045127e1ce51d19e49e367 (patch)
treec56e92261f50bbd9c8c8af20d0343c594b5178da /sys/dev/usb/controller/uhci_pci.c
parentc30acd3bb8762cc1d9d9d7816f2b52ee600a2baa (diff)
downloadFreeBSD-src-2bb239d283a1a19c20045127e1ce51d19e49e367.zip
FreeBSD-src-2bb239d283a1a19c20045127e1ce51d19e49e367.tar.gz
Modify the return value of the uhci/ehci/xhci PCI probe routines to
'BUS_PROBE_DEFAULT'. This allows bhyve's 'ppt' driver to claim ownership of the device and pass it through to the guest. In the common case where there are no competing drivers for USB controllers this change is a no-op. Reviewed by: hselasky MFC after: 2 weeks
Diffstat (limited to 'sys/dev/usb/controller/uhci_pci.c')
-rw-r--r--sys/dev/usb/controller/uhci_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/uhci_pci.c b/sys/dev/usb/controller/uhci_pci.c
index 4ac0d54..89fc983 100644
--- a/sys/dev/usb/controller/uhci_pci.c
+++ b/sys/dev/usb/controller/uhci_pci.c
@@ -244,7 +244,7 @@ uhci_pci_probe(device_t self)
if (desc) {
device_set_desc(self, desc);
- return (0);
+ return (BUS_PROBE_DEFAULT);
} else {
return (ENXIO);
}
OpenPOWER on IntegriCloud