Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2013 23:35:01 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248480 - head/sys/dev/fdt
Message-ID:  <201303182335.r2INZ1Cx042564@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303182335.r2INZ1Cx042564>