|
@@ -105,8 +105,6 @@ static inline struct device_node *of_node_get(struct device_node *node)
|
|
|
static inline void of_node_put(struct device_node *node) { }
|
|
|
#endif /* !CONFIG_OF_DYNAMIC */
|
|
|
|
|
|
-#ifdef CONFIG_OF
|
|
|
-
|
|
|
/* Pointer for first entry in chain of all nodes. */
|
|
|
extern struct device_node *of_allnodes;
|
|
|
extern struct device_node *of_chosen;
|
|
@@ -114,6 +112,7 @@ extern struct device_node *of_aliases;
|
|
|
extern struct device_node *of_stdout;
|
|
|
extern raw_spinlock_t devtree_lock;
|
|
|
|
|
|
+#ifdef CONFIG_OF
|
|
|
static inline bool of_have_populated_dt(void)
|
|
|
{
|
|
|
return of_allnodes != NULL;
|