aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/of.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 4d25e4f952d9..b99a1a8c2952 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -290,6 +290,8 @@ extern struct device_node *of_get_next_child(const struct device_node *node,
290extern struct device_node *of_get_next_available_child( 290extern struct device_node *of_get_next_available_child(
291 const struct device_node *node, struct device_node *prev); 291 const struct device_node *node, struct device_node *prev);
292 292
293extern struct device_node *of_get_compatible_child(const struct device_node *parent,
294 const char *compatible);
293extern struct device_node *of_get_child_by_name(const struct device_node *node, 295extern struct device_node *of_get_child_by_name(const struct device_node *node,
294 const char *name); 296 const char *name);
295 297
@@ -632,6 +634,12 @@ static inline bool of_have_populated_dt(void)
632 return false; 634 return false;
633} 635}
634 636
637static inline struct device_node *of_get_compatible_child(const struct device_node *parent,
638 const char *compatible)
639{
640 return NULL;
641}
642
635static inline struct device_node *of_get_child_by_name( 643static inline struct device_node *of_get_child_by_name(
636 const struct device_node *node, 644 const struct device_node *node,
637 const char *name) 645 const char *name)