From 71d90c04a87e5d83dd12a18e730bf5a49659d712 Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 2 Feb 2014 19:17:28 +0000 Subject: Follow r261352 by updating all drivers which are children of simplebus to check the status property in their probe routines. Simplebus used to only instantiate its children whose status="okay" but that was improper behavior, fixed in r261352. Now that it doesn't check anymore and probes all its children; the children all have to do the check because really only the children know how to properly interpret their status property strings. Right now all existing drivers only understand "okay" versus something- that's-not-okay, so they all use the new ofw_bus_status_okay() helper. --- sys/arm/versatile/versatile_pci.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/arm/versatile/versatile_pci.c') diff --git a/sys/arm/versatile/versatile_pci.c b/sys/arm/versatile/versatile_pci.c index bc54245..0e48496 100644 --- a/sys/arm/versatile/versatile_pci.c +++ b/sys/arm/versatile/versatile_pci.c @@ -144,6 +144,9 @@ static int versatile_pci_probe(device_t dev) { + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + if (ofw_bus_is_compatible(dev, "versatile,pci")) { device_set_desc(dev, "Versatile PCI controller"); return (BUS_PROBE_DEFAULT); -- cgit v1.1