summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/fdt_support.c2
-rw-r--r--include/fdt_support.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 7ec7d4fc59..3f641566b9 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -963,7 +963,7 @@ struct of_bus {
};
/* Default translator (generic bus) */
-static void of_bus_default_count_cells(void *blob, int parentoffset,
+void of_bus_default_count_cells(void *blob, int parentoffset,
int *addrc, int *sizec)
{
const fdt32_t *prop;
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 649fbd6cc5..c3d1fbcf35 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -142,6 +142,9 @@ static inline u64 of_read_number(const fdt32_t *cell, int size)
return r;
}
+void of_bus_default_count_cells(void *blob, int parentoffset,
+ int *addrc, int *sizec);
+
#endif /* ifdef CONFIG_OF_LIBFDT */
#ifdef USE_HOSTCC
OpenPOWER on IntegriCloud