aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/of.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 1a66b8881c01..b47096730dc5 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -108,8 +108,6 @@ static inline struct device_node *of_node_get(struct device_node *node)
108static inline void of_node_put(struct device_node *node) { } 108static inline void of_node_put(struct device_node *node) { }
109#endif /* !CONFIG_OF_DYNAMIC */ 109#endif /* !CONFIG_OF_DYNAMIC */
110 110
111#ifdef CONFIG_OF
112
113/* Pointer for first entry in chain of all nodes. */ 111/* Pointer for first entry in chain of all nodes. */
114extern struct device_node *of_allnodes; 112extern struct device_node *of_allnodes;
115extern struct device_node *of_chosen; 113extern struct device_node *of_chosen;
@@ -117,6 +115,7 @@ extern struct device_node *of_aliases;
117extern struct device_node *of_stdout; 115extern struct device_node *of_stdout;
118extern raw_spinlock_t devtree_lock; 116extern raw_spinlock_t devtree_lock;
119 117
118#ifdef CONFIG_OF
120static inline bool is_of_node(struct fwnode_handle *fwnode) 119static inline bool is_of_node(struct fwnode_handle *fwnode)
121{ 120{
122 return fwnode && fwnode->type == FWNODE_OF; 121 return fwnode && fwnode->type == FWNODE_OF;