]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
of/pdt: Remove unused of_pdt_build_more function ptr
authorRob Herring <robh@kernel.org>
Wed, 7 Nov 2018 00:07:37 +0000 (18:07 -0600)
committerRob Herring <robh@kernel.org>
Fri, 9 Nov 2018 21:40:53 +0000 (15:40 -0600)
There are no users of of_pdt_build_more since 2012, so remove it.

Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/pdt.c
include/linux/of_pdt.h

index 013e65de074ad45756fa1a361d13091bae5d311c..4fc0fd96ed0497a8f1664b6dc95a840fbc025905 100644 (file)
@@ -21,8 +21,6 @@
 
 static struct of_pdt_ops *of_pdt_prom_ops __initdata;
 
-void __initdata (*of_pdt_build_more)(struct device_node *dp);
-
 #if defined(CONFIG_SPARC)
 unsigned int of_pdt_unique_id __initdata;
 
@@ -208,9 +206,6 @@ static struct device_node * __init of_pdt_build_tree(struct device_node *parent,
 
                dp->child = of_pdt_build_tree(dp, of_pdt_prom_ops->getchild(node));
 
-               if (of_pdt_build_more)
-                       of_pdt_build_more(dp);
-
                node = of_pdt_prom_ops->getsibling(node);
        }
 
index d0b183ab65c6db582d25aa3bce42254f074f6fe8..89e4eb076a01ad72fb696f774c7aa41c3972329e 100644 (file)
@@ -35,6 +35,4 @@ 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);
-
 #endif /* _LINUX_OF_PDT_H */