state: fix finding the correct parent node
Looking for the parent node during fixup is broken. The path of the parent
node is not correctly terminated ('0' vs '\0'). Also, the new state node
should be added to the supplied device tree not the barebox device tree
used by of_find_node_by_path().

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