diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2015-05-13 16:02:55 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2015-05-13 16:02:55 +0000 |
commit | a5b53ce40ca5cfcf27967df92bbb4bd3844fd31b (patch) | |
tree | 73b40c89cac766ef184cb45e39faafc713e96aff | |
parent | 5b7350414ee45bc31e8c435812d245d38ab31ed8 (diff) | |
download | src-a5b53ce40ca5cfcf27967df92bbb4bd3844fd31b.tar.gz src-a5b53ce40ca5cfcf27967df92bbb4bd3844fd31b.zip |
Notes
-rw-r--r-- | sys/dev/ofw/ofw_bus_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofw_bus_subr.c b/sys/dev/ofw/ofw_bus_subr.c index e69d9c144f7f..58bc0ccdabca 100644 --- a/sys/dev/ofw/ofw_bus_subr.c +++ b/sys/dev/ofw/ofw_bus_subr.c @@ -511,7 +511,7 @@ ofw_bus_find_compatible(phandle_t node, const char *onecompat) * 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); |