提交 f43b4356 编写于 作者: A Arnab Basu 提交者: York Sun

fdt_support: Make of_bus_default_count_cells non static

of_bus_default_count_cells can be used to get the #address-cells
and #size-cells defined by the current node's parent node. This
is required when using of_read_number to read from FDT nodes that
can be 32 or 64 bytes depending on values defined by the parent.
Signed-off-by: NArnab Basu <arnab.basu@freescale.com>
CC: Scott Wood <scottwood@freescale.com>
上级 08df4a21
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册