of: Remove struct device_node.type pointer
Now that all users of device_node.type pointer have been removed in favor of accessor functions, we can remove it. Cc: Frank Rowand <frowand.list@gmail.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
@ -207,11 +207,8 @@ static void __of_attach_node(struct device_node *np)
|
||||
|
||||
if (!of_node_check_flag(np, OF_OVERLAY)) {
|
||||
np->name = __of_get_property(np, "name", NULL);
|
||||
np->type = __of_get_property(np, "device_type", NULL);
|
||||
if (!np->name)
|
||||
np->name = "<NULL>";
|
||||
if (!np->type)
|
||||
np->type = "<NULL>";
|
||||
|
||||
phandle = __of_get_property(np, "phandle", &sz);
|
||||
if (!phandle)
|
||||
|
Reference in New Issue
Block a user