From add35ed5b81bd56b4e0f1f9db0636b785cc0c8d1 Mon Sep 17 00:00:00 2001 From: Ian Lepore 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/dev/ffec/if_ffec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/ffec') diff --git a/sys/dev/ffec/if_ffec.c b/sys/dev/ffec/if_ffec.c index 01974ffa8cf8..05a6c99dc502 100644 --- a/sys/dev/ffec/if_ffec.c +++ b/sys/dev/ffec/if_ffec.c @@ -1713,6 +1713,9 @@ ffec_probe(device_t dev) { uintptr_t fectype; + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + fectype = ofw_bus_search_compatible(dev, compat_data)->ocd_data; if (fectype == FECTYPE_NONE) return (ENXIO); -- cgit v1.3