* printk("String value: %s\n", s);
*/
const char *of_prop_next_string(struct property *prop, const char *cur);
- #define of_property_for_each_string(np, propname, prop, s) \
- for (prop = of_find_property(np, propname, NULL), \
- s = of_prop_next_string(prop, NULL); \
- s; \
- s = of_prop_next_string(prop, s))
+int of_device_is_stdout_path(struct device_node *dn);
+
#else /* CONFIG_OF */
static inline const char* of_node_full_name(struct device_node *np)
return 0;
}
+static inline int of_device_is_stdout_path(struct device_node *dn)
+{
+ return 0;
+}
+
+ static inline const __be32 *of_prop_next_u32(struct property *prop,
+ const __be32 *cur, u32 *pu)
+ {
+ return NULL;
+ }
+
+ static inline const char *of_prop_next_string(struct property *prop,
+ const char *cur)
+ {
+ return NULL;
+ }
+
#define of_match_ptr(_ptr) NULL
#define of_match_node(_matches, _node) NULL
- #define of_property_for_each_u32(np, propname, prop, p, u) \
- while (0)
- #define of_property_for_each_string(np, propname, prop, s) \
- while (0)
#endif /* CONFIG_OF */
#ifndef of_node_to_nid