diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 16:33:26 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-31 18:43:53 +0200 |
commit | e627903d59b7f7d085e53a0dc9ed942bcc63dff9 (patch) | |
tree | 46b6e6204ba99b43b98333fbbf7626321f77dd6e /common/state/state.h | |
parent | 9d6d91931afb8f038a58d18471dccd65bdd95cfd (diff) | |
download | barebox-e627903d59b7f7d085e53a0dc9ed942bcc63dff9.tar.gz barebox-e627903d59b7f7d085e53a0dc9ed942bcc63dff9.tar.xz |
state: find device node from device path, not from device node path
The device node path may change from the internal device tree to the
one Linux is started with, so using this path to fixup the tree is
not very robust. Instead, use of_find_node_by_devpath() which has
been created for exactly this purpose.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/state.h')
-rw-r--r-- | common/state/state.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/state/state.h b/common/state/state.h index 5e240c4773..ead8cc88c1 100644 --- a/common/state/state.h +++ b/common/state/state.h @@ -104,7 +104,7 @@ struct state { struct state_backend_format *format; struct state_backend_storage storage; - char *of_backend_path; + char *backend_path; }; enum state_convert { |