diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/of.h | 3 |
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) | |||
| 108 | static inline void of_node_put(struct device_node *node) { } | 108 | static 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. */ |
| 114 | extern struct device_node *of_allnodes; | 112 | extern struct device_node *of_allnodes; |
| 115 | extern struct device_node *of_chosen; | 113 | extern struct device_node *of_chosen; |
| @@ -117,6 +115,7 @@ extern struct device_node *of_aliases; | |||
| 117 | extern struct device_node *of_stdout; | 115 | extern struct device_node *of_stdout; |
| 118 | extern raw_spinlock_t devtree_lock; | 116 | extern raw_spinlock_t devtree_lock; |
| 119 | 117 | ||
| 118 | #ifdef CONFIG_OF | ||
| 120 | static inline bool is_of_node(struct fwnode_handle *fwnode) | 119 | static 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; |
