summaryrefslogtreecommitdiffstats
path: root/drivers/of/fdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r--drivers/of/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 92dd86e4ec..cf3f1ee147 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -227,7 +227,7 @@ static struct device_node *__of_unflatten_dtb(const void *infdt, bool constprops
p = of_new_property(node, name, nodep, len);
if (!strcmp(name, "phandle") && len == 4)
- node->phandle = be32_to_cpup(p->value);
+ node->phandle = be32_to_cpup(of_property_get_value(p));
dt_struct = dt_struct_advance(&f, dt_struct,
sizeof(struct fdt_property) + len);