diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-04-13 19:12:25 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-04-28 20:20:29 -0400 |
commit | cf32eb89cb4e674f88e4af5025839d85d02485c6 (patch) | |
tree | 855f0526c3dda7df6086562181de842e9f40aedd /include/linux/of_fdt.h | |
parent | 01bf0b64579ead8a82e7cfc32ae44bc667e7ad0f (diff) |
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: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/of_fdt.h')
-rw-r--r-- | include/linux/of_fdt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index a1ca92ccb0ff..f0fdd1f43688 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h | |||
@@ -57,6 +57,7 @@ struct boot_param_header { | |||
57 | __be32 dt_struct_size; /* size of the DT structure block */ | 57 | __be32 dt_struct_size; /* size of the DT structure block */ |
58 | }; | 58 | }; |
59 | 59 | ||
60 | #if defined(CONFIG_OF_FLATTREE) | ||
60 | /* TBD: Temporary export of fdt globals - remove when code fully merged */ | 61 | /* TBD: Temporary export of fdt globals - remove when code fully merged */ |
61 | extern int __initdata dt_root_addr_cells; | 62 | extern int __initdata dt_root_addr_cells; |
62 | extern int __initdata dt_root_size_cells; | 63 | 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 | /* Other Prototypes */ | 99 | /* Other Prototypes */ |
99 | extern void unflatten_device_tree(void); | 100 | extern void unflatten_device_tree(void); |
100 | extern void early_init_devtree(void *); | 101 | extern void early_init_devtree(void *); |
102 | #endif /* CONFIG_OF_FLATTREE */ | ||
101 | 103 | ||
102 | #endif /* __ASSEMBLY__ */ | 104 | #endif /* __ASSEMBLY__ */ |
103 | #endif /* _LINUX_OF_FDT_H */ | 105 | #endif /* _LINUX_OF_FDT_H */ |