提交 ed5f886d 编写于 作者: N Nicolas Ferre 提交者: Grant Likely

dt: add empty of_alias_get_id() for non-dt builds

Add function of_alias_get_id() reporting -ENOSYS
for non-dt builds, so that drivers migrating to dt
can save some '#ifdef CONFIG_OF'.
Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: NRob Herring <rob.herring@calxeda.com>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 81397a62
...@@ -303,6 +303,11 @@ static inline struct device_node *of_parse_phandle(struct device_node *np, ...@@ -303,6 +303,11 @@ static inline struct device_node *of_parse_phandle(struct device_node *np,
return NULL; return NULL;
} }
static inline int of_alias_get_id(struct device_node *np, const char *stem)
{
return -ENOSYS;
}
#define of_match_ptr(_ptr) NULL #define of_match_ptr(_ptr) NULL
#define of_match_node(_matches, _node) NULL #define of_match_node(_matches, _node) NULL
#endif /* CONFIG_OF */ #endif /* CONFIG_OF */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册