提交 cf32eb89 编写于 作者: G Grant Likely

of/flattree: make of_fdt.h safe to unconditionally include.

If CONFIG_OF_FLATTREE is not set, then don't process the body of
linux/of_fdt.h
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 01bf0b64
...@@ -57,6 +57,7 @@ struct boot_param_header { ...@@ -57,6 +57,7 @@ struct boot_param_header {
__be32 dt_struct_size; /* size of the DT structure block */ __be32 dt_struct_size; /* size of the DT structure block */
}; };
#if defined(CONFIG_OF_FLATTREE)
/* TBD: Temporary export of fdt globals - remove when code fully merged */ /* TBD: Temporary export of fdt globals - remove when code fully merged */
extern int __initdata dt_root_addr_cells; extern int __initdata dt_root_addr_cells;
extern int __initdata dt_root_size_cells; extern int __initdata dt_root_size_cells;
...@@ -98,6 +99,7 @@ extern int early_init_dt_scan_root(unsigned long node, const char *uname, ...@@ -98,6 +99,7 @@ extern int early_init_dt_scan_root(unsigned long node, const char *uname,
/* Other Prototypes */ /* Other Prototypes */
extern void unflatten_device_tree(void); extern void unflatten_device_tree(void);
extern void early_init_devtree(void *); extern void early_init_devtree(void *);
#endif /* CONFIG_OF_FLATTREE */
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* _LINUX_OF_FDT_H */ #endif /* _LINUX_OF_FDT_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册