From 20a269e6c7378fda94043f8419c9becbde7f427a Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 15 May 2014 16:11:06 +0000 Subject: MFC r261410 Follow r261352 by updating all drivers which are children of simplebus to check the status property in their probe routines. --- sys/dev/usb/controller/ehci_imx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/usb/controller/ehci_imx.c') diff --git a/sys/dev/usb/controller/ehci_imx.c b/sys/dev/usb/controller/ehci_imx.c index 6d91b7b..d40f18d 100644 --- a/sys/dev/usb/controller/ehci_imx.c +++ b/sys/dev/usb/controller/ehci_imx.c @@ -161,6 +161,9 @@ static int imx_ehci_probe(device_t dev) { + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + if (ofw_bus_search_compatible(dev, compat_data)->ocd_data != 0) { device_set_desc(dev, "Freescale i.MX integrated USB controller"); return (BUS_PROBE_DEFAULT); -- cgit v1.1