]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dt: Add empty of_parse_phandle_with_args() function
authorThierry Reding <thierry.reding@avionic-design.de>
Fri, 13 Apr 2012 14:19:21 +0000 (16:19 +0200)
committerThierry Reding <thierry.reding@avionic-design.de>
Fri, 15 Jun 2012 10:56:55 +0000 (12:56 +0200)
This commit adds an empty of_parse_phandle_with_args() function for
!CONFIG_OF builds.

Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
include/linux/of.h

index 597e571110a2b5b48b9b4c2e18a9452649e6278e..d5dd5c06efd3d129b0ee67c17812357760333e12 100644 (file)
@@ -391,6 +391,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;