drivers/leds/leds-renesas-tpu.c: move Renesas TPU LED driver platform data
[pandora-kernel.git] / include / linux / of.h
index 8b6383d..5dbe263 100644 (file)
@@ -17,6 +17,7 @@
  */
 #include <linux/types.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/kref.h>
 #include <linux/mod_devicetable.h>
 #include <linux/spinlock.h>
@@ -200,6 +201,8 @@ extern int of_property_read_u32_array(const struct device_node *np,
                                      const char *propname,
                                      u32 *out_values,
                                      size_t sz);
+extern int of_property_read_u64(const struct device_node *np,
+                               const char *propname, u64 *out_value);
 
 extern int of_property_read_string(struct device_node *np,
                                   const char *propname,
@@ -242,6 +245,7 @@ extern void of_attach_node(struct device_node *);
 extern void of_detach_node(struct device_node *);
 #endif
 
+#define of_match_ptr(_ptr)     (_ptr)
 #else /* CONFIG_OF */
 
 static inline bool of_have_populated_dt(void)
@@ -249,6 +253,22 @@ static inline bool of_have_populated_dt(void)
        return false;
 }
 
+#define for_each_child_of_node(parent, child) \
+       while (0)
+
+static inline int of_device_is_compatible(const struct device_node *device,
+                                         const char *name)
+{
+       return 0;
+}
+
+static inline struct property *of_find_property(const struct device_node *np,
+                                               const char *name,
+                                               int *lenp)
+{
+       return NULL;
+}
+
 static inline int of_property_read_u32_array(const struct device_node *np,
                                             const char *propname,
                                             u32 *out_values, size_t sz)
@@ -270,6 +290,21 @@ static inline const void *of_get_property(const struct device_node *node,
        return NULL;
 }
 
+static inline int of_property_read_u64(const struct device_node *np,
+                                      const char *propname, u64 *out_value)
+{
+       return -ENOSYS;
+}
+
+static inline struct device_node *of_parse_phandle(struct device_node *np,
+                                                  const char *phandle_name,
+                                                  int index)
+{
+       return NULL;
+}
+
+#define of_match_ptr(_ptr)     NULL
+#define of_match_node(_matches, _node) NULL
 #endif /* CONFIG_OF */
 
 static inline int of_property_read_u32(const struct device_node *np,