diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-02-20 12:41:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-02-22 08:22:16 +0100 |
commit | 1eddb0d3821d7bb368fa6b092b980b89fc47db28 (patch) | |
tree | 5b0d0125852e957acaaeb75036f67c0a90a1a6e7 /common/state/state.h | |
parent | a66a8d79871c3763cd488cd5e785415a5dbc36de (diff) | |
download | barebox-1eddb0d3821d7bb368fa6b092b980b89fc47db28.tar.gz barebox-1eddb0d3821d7bb368fa6b092b980b89fc47db28.tar.xz |
state: find backend node with its reproducible name
When fixing up the kernels state nodes we depended on the full node path
of the input device tree. This does not work when the kernel device tree
has different names. This has happened lately when the i.MX6 device
trees got their leading zeroes removed from the node names.
Use of_find_node_by_reproducible_name() to find the node corresponding
to the storage backend node in the kernel device tree.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/state.h')
-rw-r--r-- | common/state/state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/state/state.h b/common/state/state.h index da1c6acaeb..6670523cbb 100644 --- a/common/state/state.h +++ b/common/state/state.h @@ -115,6 +115,7 @@ struct state { struct state_backend_format *format; struct state_backend_storage storage; char *backend_path; + char *backend_reproducible_name; }; enum state_convert { |