diff options
author | Rob Herring <robh@kernel.org> | 2018-12-11 15:31:05 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-01-10 17:24:44 -0500 |
commit | 8ce5f84157530ffa64b3e0acf00b9261f41c8da8 (patch) | |
tree | 325168c1b1daf5e03a74fc692850efc96357e413 | |
parent | bfeffd155283772bbe78c6a05dec7c0128ee500c (diff) |
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>
-rw-r--r-- | drivers/of/dynamic.c | 3 | ||||
-rw-r--r-- | drivers/of/fdt.c | 4 | ||||
-rw-r--r-- | drivers/of/overlay.c | 3 | ||||
-rw-r--r-- | drivers/of/pdt.c | 1 | ||||
-rw-r--r-- | include/linux/of.h | 1 |
5 files changed, 0 insertions, 12 deletions
diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c index a09c1c3cf831..49b16f76d78e 100644 --- a/drivers/of/dynamic.c +++ b/drivers/of/dynamic.c | |||
@@ -207,11 +207,8 @@ static void __of_attach_node(struct device_node *np) | |||
207 | 207 | ||
208 | if (!of_node_check_flag(np, OF_OVERLAY)) { | 208 | if (!of_node_check_flag(np, OF_OVERLAY)) { |
209 | np->name = __of_get_property(np, "name", NULL); | 209 | np->name = __of_get_property(np, "name", NULL); |
210 | np->type = __of_get_property(np, "device_type", NULL); | ||
211 | if (!np->name) | 210 | if (!np->name) |
212 | np->name = "<NULL>"; | 211 | np->name = "<NULL>"; |
213 | if (!np->type) | ||
214 | np->type = "<NULL>"; | ||
215 | 212 | ||
216 | phandle = __of_get_property(np, "phandle", &sz); | 213 | phandle = __of_get_property(np, "phandle", &sz); |
217 | if (!phandle) | 214 | if (!phandle) |
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, | |||
314 | populate_properties(blob, offset, mem, np, pathp, dryrun); | 314 | populate_properties(blob, offset, mem, np, pathp, dryrun); |
315 | if (!dryrun) { | 315 | if (!dryrun) { |
316 | np->name = of_get_property(np, "name", NULL); | 316 | np->name = of_get_property(np, "name", NULL); |
317 | np->type = of_get_property(np, "device_type", NULL); | ||
318 | |||
319 | if (!np->name) | 317 | if (!np->name) |
320 | np->name = "<NULL>"; | 318 | np->name = "<NULL>"; |
321 | if (!np->type) | ||
322 | np->type = "<NULL>"; | ||
323 | } | 319 | } |
324 | 320 | ||
325 | *pnp = np; | 321 | *pnp = np; |
diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index 2b5ac43a5690..c423e94baf0f 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c | |||
@@ -423,12 +423,9 @@ static int add_changeset_node(struct overlay_changeset *ovcs, | |||
423 | 423 | ||
424 | tchild->parent = target->np; | 424 | tchild->parent = target->np; |
425 | tchild->name = __of_get_property(node, "name", NULL); | 425 | tchild->name = __of_get_property(node, "name", NULL); |
426 | tchild->type = __of_get_property(node, "device_type", NULL); | ||
427 | 426 | ||
428 | if (!tchild->name) | 427 | if (!tchild->name) |
429 | tchild->name = "<NULL>"; | 428 | tchild->name = "<NULL>"; |
430 | if (!tchild->type) | ||
431 | tchild->type = "<NULL>"; | ||
432 | 429 | ||
433 | /* ignore obsolete "linux,phandle" */ | 430 | /* ignore obsolete "linux,phandle" */ |
434 | phandle = __of_get_property(node, "phandle", &size); | 431 | phandle = __of_get_property(node, "phandle", &size); |
diff --git a/drivers/of/pdt.c b/drivers/of/pdt.c index d3185063d369..7eda43c66c91 100644 --- a/drivers/of/pdt.c +++ b/drivers/of/pdt.c | |||
@@ -155,7 +155,6 @@ static struct device_node * __init of_pdt_create_node(phandle node, | |||
155 | dp->parent = parent; | 155 | dp->parent = parent; |
156 | 156 | ||
157 | dp->name = of_pdt_get_one_property(node, "name"); | 157 | dp->name = of_pdt_get_one_property(node, "name"); |
158 | dp->type = of_pdt_get_one_property(node, "device_type"); | ||
159 | dp->phandle = node; | 158 | dp->phandle = node; |
160 | 159 | ||
161 | dp->properties = of_pdt_build_prop_list(node); | 160 | dp->properties = of_pdt_build_prop_list(node); |
diff --git a/include/linux/of.h b/include/linux/of.h index fe472e5195a9..e240992e5cb6 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -50,7 +50,6 @@ struct of_irq_controller; | |||
50 | 50 | ||
51 | struct device_node { | 51 | struct device_node { |
52 | const char *name; | 52 | const char *name; |
53 | const char *type; | ||
54 | phandle phandle; | 53 | phandle phandle; |
55 | const char *full_name; | 54 | const char *full_name; |
56 | struct fwnode_handle fwnode; | 55 | struct fwnode_handle fwnode; |