Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/mv/mv_common.c
Show First 20 Lines • Show All 2,058 Lines • ▼ Show 20 Lines | while (child != 0) { | ||||
} | } | ||||
/* | /* | ||||
* Once done with root-level children let's move down to | * Once done with root-level children let's move down to | ||||
* simple-bus and its children. | * simple-bus and its children. | ||||
*/ | */ | ||||
child = OF_peer(child); | child = OF_peer(child); | ||||
if ((child == 0) && (node == OF_finddevice("/"))) { | if ((child == 0) && (node == OF_finddevice("/"))) { | ||||
node = fdt_find_compatible(node, "simple-bus", 1); | node = fdt_find_compatible(node, "simple-bus", 0); | ||||
if (node == 0) | if (node == 0) | ||||
return (ENXIO); | return (ENXIO); | ||||
child = OF_child(node); | child = OF_child(node); | ||||
} | } | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |