OF_ROOT_NODE_* defines should not be used outside of base.c. Move them to drivers/of/base.c to ensure they will not be used elsewhere. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> --- Cc: barebox@xxxxxxxxxxxxxxxxxxx --- drivers/of/base.c | 3 +++ include/of.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 2778230..429f924 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -64,6 +64,9 @@ struct device_node *root_node; struct device_node *of_aliases; +#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 +#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1 + int of_n_addr_cells(struct device_node *np) { const __be32 *ip; diff --git a/include/of.h b/include/of.h index e091326..8cab797 100644 --- a/include/of.h +++ b/include/of.h @@ -101,9 +101,6 @@ int of_get_named_gpio(struct device_node *np, void of_print_property(const void *data, int len); void of_print_cmdline(struct device_node *root); -#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 -#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1 - void of_print_nodes(struct device_node *node, int indent); int of_probe(void); int of_parse_dtb(struct fdt_header *fdt); -- 1.7.2.5 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox