summaryrefslogtreecommitdiffstats
path: root/drivers/of/fdt.c
diff options
context:
space:
mode:
authorRob Herring2018-12-11 21:31:05 +0100
committerRob Herring2019-01-10 23:24:44 +0100
commit8ce5f84157530ffa64b3e0acf00b9261f41c8da8 (patch)
tree325168c1b1daf5e03a74fc692850efc96357e413 /drivers/of/fdt.c
parentLinux 5.0-rc1 (diff)
downloadkernel-qcow2-linux-8ce5f84157530ffa64b3e0acf00b9261f41c8da8.tar.gz
kernel-qcow2-linux-8ce5f84157530ffa64b3e0acf00b9261f41c8da8.tar.xz
kernel-qcow2-linux-8ce5f84157530ffa64b3e0acf00b9261f41c8da8.zip
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>
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r--drivers/of/fdt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 7099c652c6a5..9cc1461aac7d 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -314,12 +314,8 @@ static bool populate_node(const void *blob,
populate_properties(blob, offset, mem, np, pathp, dryrun);
if (!dryrun) {
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>";
}
*pnp = np;