Allow simplebus to attach in less strict way, when "simple-bus" listed on not
first position of compatible property, so simplebus driver can be generic driver for any bus listed as compatible with "simple-bus". Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
78260bb30a
commit
2737a5a925
@ -134,12 +134,12 @@ static int
|
||||
simplebus_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_is_compatible_strict(dev, "simple-bus"))
|
||||
if (!ofw_bus_is_compatible(dev, "simple-bus"))
|
||||
return (ENXIO);
|
||||
|
||||
device_set_desc(dev, "Flattened device tree simple bus");
|
||||
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
return (BUS_PROBE_GENERIC);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user