state: don't keep pointers to device tree nodes
Caching pointers to device tree nodes or is not save. The barebox internal
device tree may be changed by loading a new device tree or through fixup
handlers. As a result, the node may be deleted and replaced with a new one.
Keep a copy of the full path instead and resolve the node as needed.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent aaaea5f commit 50fb411a20980847abeb84acc7afa10e7d44f097
@Michael Olbrich Michael Olbrich authored on 16 Sep 2016
Sascha Hauer committed on 31 Mar 2017
Showing 2 changed files
View
src/barebox-state/state.c
View
src/barebox-state/state.h