diff options
author | ian <ian@FreeBSD.org> | 2014-05-15 16:11:06 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-05-15 16:11:06 +0000 |
commit | 20a269e6c7378fda94043f8419c9becbde7f427a (patch) | |
tree | 675ee07ce869e3193726664b9896e280b0c03239 /sys/dev/ffec | |
parent | ffa1dc9425d9681f0da92d9266010bcc0f81d399 (diff) | |
download | FreeBSD-src-20a269e6c7378fda94043f8419c9becbde7f427a.zip FreeBSD-src-20a269e6c7378fda94043f8419c9becbde7f427a.tar.gz |
MFC r261410
Follow r261352 by updating all drivers which are children of simplebus
to check the status property in their probe routines.
Diffstat (limited to 'sys/dev/ffec')
-rw-r--r-- | sys/dev/ffec/if_ffec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ffec/if_ffec.c b/sys/dev/ffec/if_ffec.c index d3f2e63..42e1ed0 100644 --- a/sys/dev/ffec/if_ffec.c +++ b/sys/dev/ffec/if_ffec.c @@ -1711,6 +1711,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); |