Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2015 16:02:56 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282864 - head/sys/dev/ofw
Message-ID:  <201505131602.t4DG2ux5060210@svn.freebsd.org>

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



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