summaryrefslogtreecommitdiffstats
path: root/common/state/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/state/state.c')
-rw-r--r--common/state/state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/state/state.c b/common/state/state.c
index 9d04eab312..469ee62d40 100644
--- a/common/state/state.c
+++ b/common/state/state.c
@@ -615,6 +615,10 @@ struct state *state_new_from_node(struct device_node *node, bool readonly)
}
#ifdef __BAREBOX__
+ ret = of_partition_ensure_probed(partition_node);
+ if (ret)
+ goto out_release_state;
+
ret = of_find_path_by_node(partition_node, &state->backend_path, 0);
#else
ret = of_get_devicepath(partition_node, &state->backend_path, &offset, &size);