summaryrefslogtreecommitdiff
path: root/include/linux/of_pdt.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2014-10-03 19:28:27 +0400
committerGrant Likely <grant.likely@linaro.org>2014-11-04 16:29:38 +0300
commit5063e25a302e6a83f6590d9a06bd5f6400b17430 (patch)
treebd6aafd28fb65ea19cd1535fd9a53263b42a68c0 /include/linux/of_pdt.h
parente7a00e4210e4cc980e3ba67ec7301af54061d14b (diff)
downloadlinux-5063e25a302e6a83f6590d9a06bd5f6400b17430.tar.xz
of: Eliminate of_allnodes list
The device tree structure is composed of two lists; the 'allnodes' list which is a singly linked list containing every node in the tree, and the child->parent structure where each parent node has a singly linked list of children. All of the data in the allnodes list can be easily reproduced with the parent-child lists, so of_allnodes is actually unnecessary. Remove it entirely which saves a bit of memory and simplifies the data structure quite a lot. Signed-off-by: Grant Likely <grant.likely@linaro.org> Cc: Rob Herring <robh@kernel.org> Cc: Gaurav Minocha <gaurav.minocha.os@gmail.com> Cc: Pantelis Antoniou <pantelis@pantelis.antoniou@konsulko.com>
Diffstat (limited to 'include/linux/of_pdt.h')
-rw-r--r--include/linux/of_pdt.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/of_pdt.h b/include/linux/of_pdt.h
index c65a18a0cfdf..7e09244bb679 100644
--- a/include/linux/of_pdt.h
+++ b/include/linux/of_pdt.h
@@ -39,7 +39,6 @@ extern void *prom_early_alloc(unsigned long size);
/* for building the device tree */
extern void of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops);
-extern void (*of_pdt_build_more)(struct device_node *dp,
- struct device_node ***nextp);
+extern void (*of_pdt_build_more)(struct device_node *dp);
#endif /* _LINUX_OF_PDT_H */