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>
1 parent 9d6d919 commit e627903d59b7f7d085e53a0dc9ed942bcc63dff9
@Sascha Hauer Sascha Hauer authored on 30 Mar 2017
Showing 2 changed files
View
common/state/state.c
View
common/state/state.h