aboutsummaryrefslogtreecommitdiff
path: root/core/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/device.c')
-rw-r--r--core/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/device.c b/core/device.c
index b102dd9..2de37c7 100644
--- a/core/device.c
+++ b/core/device.c
@@ -120,7 +120,7 @@ bool dt_attach_root(struct dt_node *parent, struct dt_node *root)
break;
}
- list_add_before(&parent->children, &root->list, &node->list);
+ list_add_before(&parent->children, &node->list, &root->list);
root->parent = parent;
return true;