svn commit: r282864 - head/sys/dev/ofw

Andrew Turner andrew at FreeBSD.org
Wed May 13 16:02:56 UTC 2015


Author: andrew
Date: Wed May 13 16:02:55 2015
New Revision: 282864
URL: https://svnweb.freebsd.org/changeset/base/282864

Log:
  Use the correct node wen reading the compatible property.

Modified:
  head/sys/dev/ofw/ofw_bus_subr.c

Modified: head/sys/dev/ofw/ofw_bus_subr.c
==============================================================================
--- head/sys/dev/ofw/ofw_bus_subr.c	Wed May 13 15:26:44 2015	(r282863)
+++ head/sys/dev/ofw/ofw_bus_subr.c	Wed May 13 16:02:55 2015	(r282864)
@@ -511,7 +511,7 @@ ofw_bus_find_compatible(phandle_t node, 
 	 * matching 'compatible' property.
 	 */
 	for (child = OF_child(node); child != 0; child = OF_peer(child)) {
-		len = OF_getprop_alloc(node, "compatible", 1, &compat);
+		len = OF_getprop_alloc(child, "compatible", 1, &compat);
 		if (len >= 0) {
 			ret = ofw_bus_node_is_compatible(compat, len,
 			    onecompat);


More information about the svn-src-all mailing list