diff options
Diffstat (limited to 'sys/dev/fdt/simplebus.c')
-rw-r--r-- | sys/dev/fdt/simplebus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c index 5661d81..ee968ae 100644 --- a/sys/dev/fdt/simplebus.c +++ b/sys/dev/fdt/simplebus.c @@ -128,6 +128,9 @@ static int simplebus_probe(device_t dev) { + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + if (!ofw_bus_is_compatible(dev, "simple-bus") && (ofw_bus_get_type(dev) == NULL || strcmp(ofw_bus_get_type(dev), "soc") != 0)) |