Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/of/base.c | 6 +++--- include/of.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index ada3fc1..d22031f 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -96,7 +96,7 @@ static void of_bus_default_count_cells(struct device_node *dev, *sizec = of_n_size_cells(dev); } -void of_bus_count_cells(struct device_node *dev, +static void of_bus_count_cells(struct device_node *dev, int *addrc, int *sizec) { of_bus_default_count_cells(dev, addrc, sizec); @@ -135,7 +135,7 @@ static void of_alias_add(struct alias_prop *ap, struct device_node *np, * the global lookup table with the properties. It returns the * number of alias_prop found, or error code in error case. */ -void of_alias_scan(void) +static void of_alias_scan(void) { struct property *pp; struct alias_prop *app, *tmp; @@ -814,7 +814,7 @@ static struct device_d *add_of_device(struct device_node *node) } EXPORT_SYMBOL(add_of_device); -u64 dt_mem_next_cell(int s, const __be32 **cellp) +static u64 dt_mem_next_cell(int s, const __be32 **cellp) { const __be32 *p = *cellp; diff --git a/include/of.h b/include/of.h index c10afa7..94ccfd8 100644 --- a/include/of.h +++ b/include/of.h @@ -143,6 +143,8 @@ int of_device_is_compatible(const struct device_node *device, int of_machine_is_compatible(const char *compat); +u64 of_translate_address(struct device_node *node, const __be32 *in_addr); + #define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 #define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1 -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox