pinctrl: rockchip: use flat device tree to find the node in spl

Change-Id: I9eaa8aa17a0fad3bf9ea67746db3ed470a63a85b
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
Jason Zhu 2019-11-06 11:57:01 +08:00
parent 5d3e5a0afc
commit d2e2dbd6d5
1 changed files with 2 additions and 2 deletions

View File

@ -2576,7 +2576,7 @@ static int rockchip_pinctrl_set_state(struct udevice *dev,
int prop_len, param;
const u32 *data;
ofnode node;
#ifdef CONFIG_OF_LIVE
#if defined(CONFIG_OF_LIVE) && !defined(CONFIG_SPL_BUILD)
const struct device_node *np;
struct property *pp;
#else
@ -2616,7 +2616,7 @@ static int rockchip_pinctrl_set_state(struct udevice *dev,
node = ofnode_get_by_phandle(conf);
if (!ofnode_valid(node))
return -ENODEV;
#ifdef CONFIG_OF_LIVE
#if defined(CONFIG_OF_LIVE) && !defined(CONFIG_SPL_BUILD)
np = ofnode_to_np(node);
for (pp = np->properties; pp; pp = pp->next) {
prop_name = pp->name;