This allows us to unconditionally include of.h in files which did not require CONFIG_OFTREE, required for the MMU code in later patches. Signed-off-by: Rouven Czerwinski <r.czerwinski@xxxxxxxxxxxxxx> --- include/of.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/of.h b/include/of.h index 4844e800b4..36936ecd6e 100644 --- a/include/of.h +++ b/include/of.h @@ -62,7 +62,6 @@ struct of_reserve_map { int of_add_reserve_entry(resource_size_t start, resource_size_t end, int flags); -struct of_reserve_map *of_get_reserve_map(void); void of_clean_reserve_map(void); void fdt_add_reserve_map(void *fdt); @@ -120,6 +119,7 @@ struct device_node *of_unflatten_dtb_const(const void *infdt, int size); struct cdev; #ifdef CONFIG_OFTREE +struct of_reserve_map *of_get_reserve_map(void); extern int of_bus_n_addr_cells(struct device_node *np); extern int of_n_addr_cells(struct device_node *np); extern int of_bus_n_size_cells(struct device_node *np); @@ -821,6 +821,10 @@ static inline int of_autoenable_i2c_by_component(char *path) return -ENODEV; } +static inline struct of_reserve_map *of_get_reserve_map(void) +{ + return NULL; +} #endif -- 2.32.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox