Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-12
-3
drivers/of/dynamic.c
··· 207 207 208 208 if (!of_node_check_flag(np, OF_OVERLAY)) { 209 209 np->name = __of_get_property(np, "name", NULL); 210 - np->type = __of_get_property(np, "device_type", NULL); 211 210 if (!np->name) 212 211 np->name = "<NULL>"; 213 - if (!np->type) 214 - np->type = "<NULL>"; 215 212 216 213 phandle = __of_get_property(np, "phandle", &sz); 217 214 if (!phandle)
-4
drivers/of/fdt.c
··· 314 314 populate_properties(blob, offset, mem, np, pathp, dryrun); 315 315 if (!dryrun) { 316 316 np->name = of_get_property(np, "name", NULL); 317 - np->type = of_get_property(np, "device_type", NULL); 318 - 319 317 if (!np->name) 320 318 np->name = "<NULL>"; 321 - if (!np->type) 322 - np->type = "<NULL>"; 323 319 } 324 320 325 321 *pnp = np;
-3
drivers/of/overlay.c
··· 423 423 424 424 tchild->parent = target->np; 425 425 tchild->name = __of_get_property(node, "name", NULL); 426 - tchild->type = __of_get_property(node, "device_type", NULL); 427 426 428 427 if (!tchild->name) 429 428 tchild->name = "<NULL>"; 430 - if (!tchild->type) 431 - tchild->type = "<NULL>"; 432 429 433 430 /* ignore obsolete "linux,phandle" */ 434 431 phandle = __of_get_property(node, "phandle", &size);
-1
drivers/of/pdt.c
··· 155 155 dp->parent = parent; 156 156 157 157 dp->name = of_pdt_get_one_property(node, "name"); 158 - dp->type = of_pdt_get_one_property(node, "device_type"); 159 158 dp->phandle = node; 160 159 161 160 dp->properties = of_pdt_build_prop_list(node);
-1
include/linux/of.h
··· 50 50 51 51 struct device_node { 52 52 const char *name; 53 - const char *type; 54 53 phandle phandle; 55 54 const char *full_name; 56 55 struct fwnode_handle fwnode;