diff options
Diffstat (limited to 'drivers/of/pdt.c')
-rw-r--r-- | drivers/of/pdt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/of/pdt.c b/drivers/of/pdt.c index e64fa3d3da5f..38de38601429 100644 --- a/drivers/of/pdt.c +++ b/drivers/of/pdt.c @@ -176,6 +176,11 @@ static struct device_node * __init of_pdt_create_node(phandle node, return NULL; dp = prom_early_alloc(sizeof(*dp)); + /* of_node_init(np); likely will throw runtime errors + * 'tried to init an initialized object' + * thus only set the type here. Sideeffect from backporting extcon */ + np->fwnode.type = FWNODE_OF; + of_pdt_incr_unique_id(dp); dp->parent = parent; |