diff options
Diffstat (limited to 'include/of.h')
-rw-r--r-- | include/of.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 08a02e1105..6181da8c61 100644 --- a/include/of.h +++ b/include/of.h @@ -254,6 +254,8 @@ extern int of_count_phandle_with_args(const struct device_node *np, extern void of_alias_scan(void); extern int of_alias_get_id(struct device_node *np, const char *stem); +extern int of_alias_get_id_from(struct device_node *root, struct device_node *np, + const char *stem); extern const char *of_alias_get(struct device_node *np); extern int of_modalias_node(struct device_node *node, char *modalias, int len); @@ -677,6 +679,12 @@ static inline int of_alias_get_id(struct device_node *np, const char *stem) return -ENOSYS; } +static inline int of_alias_get_id_from(struct device_node *root, struct device_node *np, + const char *stem) +{ + return -ENOSYS; +} + static inline const char *of_alias_get(struct device_node *np) { return NULL; |