diff options
Diffstat (limited to 'common/state/state.c')
-rw-r--r-- | common/state/state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/state/state.c b/common/state/state.c index 0c329cd675..075618e5bb 100644 --- a/common/state/state.c +++ b/common/state/state.c @@ -307,8 +307,8 @@ static int of_state_fixup(struct device_node *root, void *ctx) c = strrchr(of_path, '/'); if (!c) return -ENODEV; - *c = '0'; - parent = of_find_node_by_path(of_path); + *c = '\0'; + parent = of_find_node_by_path_from(root, of_path); if (!parent) parent = root; |