From 9a130354217f4874d33544ecc0352d6d72fc2fe8 Mon Sep 17 00:00:00 2001
From: hselasky <hselasky@FreeBSD.org>
Date: Thu, 8 Sep 2016 09:50:03 +0000
Subject: MFC r281499: 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.

PR:		212256
---
 sys/dev/usb/controller/uhci_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sys/dev/usb/controller/uhci_pci.c')

diff --git a/sys/dev/usb/controller/uhci_pci.c b/sys/dev/usb/controller/uhci_pci.c
index 0c5d99f..5916996 100644
--- a/sys/dev/usb/controller/uhci_pci.c
+++ b/sys/dev/usb/controller/uhci_pci.c
@@ -254,7 +254,7 @@ uhci_pci_probe(device_t self)
 
 	if (desc) {
 		device_set_desc(self, desc);
-		return (0);
+		return (BUS_PROBE_DEFAULT);
 	} else {
 		return (ENXIO);
 	}
-- 
cgit v1.1