Page MenuHomeFreeBSD

D10719.id28319.diff
No OneTemporary

D10719.id28319.diff

Index: sys/arm/mv/mv_common.c
===================================================================
--- sys/arm/mv/mv_common.c
+++ sys/arm/mv/mv_common.c
@@ -2231,11 +2231,12 @@
static int
fdt_win_setup(void)
{
- phandle_t node, child;
+ phandle_t node, child, sb;
struct soc_node_spec *soc_node;
u_long size, base;
int err, i;
+ sb = 0;
node = OF_finddevice("/");
if (node == -1)
panic("fdt_win_setup: no root node");
@@ -2277,7 +2278,7 @@
*/
child = OF_peer(child);
if ((child == 0) && (node == OF_finddevice("/"))) {
- node = fdt_find_compatible(node, "simple-bus", 0);
+ sb = node = fdt_find_compatible(node, "simple-bus", 0);
if (node == 0)
return (ENXIO);
child = OF_child(node);
@@ -2287,7 +2288,7 @@
* it is present) and its children. This node also have
* "simple-bus" compatible.
*/
- if ((child == 0) && (node == OF_finddevice("simple-bus"))) {
+ if ((child == 0) && (node == sb)) {
node = fdt_find_compatible(node, "simple-bus", 0);
if (node == 0)
return (0);

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 8, 6:11 PM (12 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29412435
Default Alt Text
D10719.id28319.diff (1 KB)

Event Timeline