Page MenuHomeFreeBSD

D30165.diff
No OneTemporary

D30165.diff

diff --git a/sys/dev/ofw/ofw_graph.c b/sys/dev/ofw/ofw_graph.c
--- a/sys/dev/ofw/ofw_graph.c
+++ b/sys/dev/ofw/ofw_graph.c
@@ -60,6 +60,14 @@
if (child != 0)
return (child);
+ /* Now check for 'port' without explicit index. */
+ if (idx == 0) {
+ snprintf(portnode, sizeof(portnode), "port");
+ child = ofw_bus_find_child(node, portnode);
+ if (child != 0)
+ return (child);
+ }
+
/* Next try to look under ports */
ports = ofw_bus_find_child(node, "ports");
if (ports == 0)

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 5:30 AM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14690388
Default Alt Text
D30165.diff (494 B)

Event Timeline