Skip to contentSkip to conversation

dt/flattree: Add stub defintions for flat device tree functions

PATCH New Laura Abbott 1 participant 1 message Jul 20, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt/flattree: Add stub defintions for flat device tree functions

Several flattened device tree functions are missing stub functions when CONFIG_OF_FLATTREE is not selected, creating compilation errors. Add the stub functions.

---
 include/linux/of_fdt.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
include/linux/of_fdt.h +5 -0
index ed136ad..e3d59cd 100644
@@ -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__ */
Signature · 1 line
1.7.8.3