summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/xhci_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/xhci_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/xhci_pci.c')
-rw-r--r--sys/dev/usb/controller/xhci_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/xhci_pci.c b/sys/dev/usb/controller/xhci_pci.c
index c2367f4..0e2c632 100644
--- a/sys/dev/usb/controller/xhci_pci.c
+++ b/sys/dev/usb/controller/xhci_pci.c
@@ -131,7 +131,7 @@ xhci_pci_probe(device_t self)
if (desc) {
device_set_desc(self, desc);
- return (0);
+ return (BUS_PROBE_DEFAULT);
} else {
return (ENXIO);
}
OpenPOWER on IntegriCloud