svn commit: r248480 - head/sys/dev/fdt
Aleksandr Rybalko
ray at FreeBSD.org
Mon Mar 18 23:35:01 UTC 2013
Author: ray
Date: Mon Mar 18 23:35:01 2013
New Revision: 248480
URL: http://svnweb.freebsd.org/changeset/base/248480
Log:
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
Modified:
head/sys/dev/fdt/simplebus.c
Modified: head/sys/dev/fdt/simplebus.c
==============================================================================
--- head/sys/dev/fdt/simplebus.c Mon Mar 18 23:31:22 2013 (r248479)
+++ head/sys/dev/fdt/simplebus.c Mon Mar 18 23:35:01 2013 (r248480)
@@ -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
More information about the svn-src-head
mailing list