mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-22 04:15:02 +00:00
dt/flattree: Add stub defintions for flat device tree function
Several flattened device tree functions are currently accessed in a file that is compiled regardless of whether device tree is enabled or not. Add stubs for these functions if device tree is not selected. Change-Id: I0bea3325692fac46d3e5ef457aa30e083f71cd6d Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
This commit is contained in:
parent
93e7994006
commit
ac2f43fa19
1 changed files with 5 additions and 0 deletions
|
@ -119,6 +119,11 @@ extern void unflatten_device_tree(void);
|
|||
extern void early_init_devtree(void *);
|
||||
#else /* CONFIG_OF_FLATTREE */
|
||||
static inline void unflatten_device_tree(void) {}
|
||||
static inline void *of_get_flat_dt_prop(unsigned long node, const char *name,
|
||||
unsigned long *size) { return NULL; }
|
||||
|
||||
static inline int of_flat_dt_is_compatible(unsigned long node,
|
||||
const char *name) { return 0; }
|
||||
#endif /* CONFIG_OF_FLATTREE */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
|
Loading…
Reference in a new issue