aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-07-25 08:33:45 -0400
committerArnd Bergmann <arnd@arndb.de>2012-07-25 08:35:04 -0400
commit8cef081c71dd4e16a01a1e63cedab21eef8b5735 (patch)
treeb5b0fb5ab09dc60dee5fc8fd8e980359abbd1b1e /include/linux/of.h
parent3d55c29fb24286f350f04021bef2dd799e25dd20 (diff)
parent9161c3b796a2841a9a7be3d9c9dd121269ce90e8 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into fixes
The merge of the 'clk-for-linus' branch caused an automated merge failure. Pull that in here so we can fix the problem. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 2ec1083af7ff..0e9cf9eec085 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -163,6 +163,11 @@ static inline int of_node_to_nid(struct device_node *np) { return -1; }
163#define of_node_to_nid of_node_to_nid 163#define of_node_to_nid of_node_to_nid
164#endif 164#endif
165 165
166static inline const char* of_node_full_name(struct device_node *np)
167{
168 return np ? np->full_name : "<no-node>";
169}
170
166extern struct device_node *of_find_node_by_name(struct device_node *from, 171extern struct device_node *of_find_node_by_name(struct device_node *from,
167 const char *name); 172 const char *name);
168#define for_each_node_by_name(dn, name) \ 173#define for_each_node_by_name(dn, name) \
@@ -260,8 +265,7 @@ extern int of_machine_is_compatible(const char *compat);
260extern int prom_add_property(struct device_node* np, struct property* prop); 265extern int prom_add_property(struct device_node* np, struct property* prop);
261extern int prom_remove_property(struct device_node *np, struct property *prop); 266extern int prom_remove_property(struct device_node *np, struct property *prop);
262extern int prom_update_property(struct device_node *np, 267extern int prom_update_property(struct device_node *np,
263 struct property *newprop, 268 struct property *newprop);
264 struct property *oldprop);
265 269
266#if defined(CONFIG_OF_DYNAMIC) 270#if defined(CONFIG_OF_DYNAMIC)
267/* For updating the device tree at runtime */ 271/* For updating the device tree at runtime */
@@ -303,6 +307,11 @@ const char *of_prop_next_string(struct property *prop, const char *cur);
303 307
304#else /* CONFIG_OF */ 308#else /* CONFIG_OF */
305 309
310static inline const char* of_node_full_name(struct device_node *np)
311{
312 return "<no-node>";
313}
314
306static inline bool of_have_populated_dt(void) 315static inline bool of_have_populated_dt(void)
307{ 316{
308 return false; 317 return false;