summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorray <ray@FreeBSD.org>2013-03-18 23:35:01 +0000
committerray <ray@FreeBSD.org>2013-03-18 23:35:01 +0000
commit9fa825f868bf74adcf63d1c3169cf5a556e9df39 (patch)
treecd49b79b173bf8702bcbbe17e784c0a7ca359c45 /sys/dev/fdt
parented21226b8322c56385f575e9586c622eee7c7852 (diff)
downloadFreeBSD-src-9fa825f868bf74adcf63d1c3169cf5a556e9df39.zip
FreeBSD-src-9fa825f868bf74adcf63d1c3169cf5a556e9df39.tar.gz
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
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/simplebus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c
index 0a4a4a1..48170c7 100644
--- a/sys/dev/fdt/simplebus.c
+++ b/sys/dev/fdt/simplebus.c
@@ -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
OpenPOWER on IntegriCloud