Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147029365
D10719.id28319.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10719.id28319.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10719: Enable proper parsing of nested simlpe-buses on Marvell platforms
Attached
Detach File
Event Timeline
Log In to Comment