[PATCH 2/2] dt: Add empty of_parse_phandle_with_args() function

Thierry Reding thierry.reding at avionic-design.de
Sat Apr 14 00:23:36 EST 2012


This commit adds an empty of_parse_phandle_with_args() function for
!CONFIG_OF builds.

Signed-off-by: Thierry Reding <thierry.reding at avionic-design.de>
---
 include/linux/of.h |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index 937ca14..bd52d83 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -375,6 +375,15 @@ static inline struct device_node *of_parse_phandle(struct device_node *np,
 	return NULL;
 }
 
+static inline int of_parse_phandle_with_args(struct device_node *np,
+					     const char *list_name,
+					     const char *cells_name,
+					     int index,
+					     struct of_phandle_args *out_args)
+{
+	return -ENOSYS;
+}
+
 static inline int of_alias_get_id(struct device_node *np, const char *stem)
 {
 	return -ENOSYS;
-- 
1.7.10



More information about the devicetree-discuss mailing list