aboutsummaryrefslogtreecommitdiff
path: root/drivers/of/pdt.c
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2015-03-20 21:04:04 +0100
committerAnders Roxell <anders.roxell@linaro.org>2015-03-20 21:04:04 +0100
commit82fc0deb5fb5067c5207ace309b4e3af3eeec17b (patch)
treeb74cc762f65e4e8957098767b07e423f62cc38a4 /drivers/of/pdt.c
parente20e8b472345ea5babd805db6726d1a7000f7673 (diff)
parent5210951a4876a42856434546d2789838d3e35f34 (diff)
Merge branch 'linux-linaro-lsk-v3.14' into linux-linaro-lsk-v3.14-rtlsk-v3.14-15.03-rt
Diffstat (limited to 'drivers/of/pdt.c')
-rw-r--r--drivers/of/pdt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/of/pdt.c b/drivers/of/pdt.c
index 7b666736c168..36b4035881b0 100644
--- a/drivers/of/pdt.c
+++ b/drivers/of/pdt.c
@@ -176,11 +176,10 @@ static struct device_node * __init of_pdt_create_node(phandle node,
return NULL;
dp = prom_early_alloc(sizeof(*dp));
+ of_node_init(dp);
of_pdt_incr_unique_id(dp);
dp->parent = parent;
- kref_init(&dp->kref);
-
dp->name = of_pdt_get_one_property(node, "name");
dp->type = of_pdt_get_one_property(node, "device_type");
dp->phandle = node;