diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-19 04:47:30 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-19 04:47:30 -0400 |
commit | 0d4a42f6bd298e826620585e766a154ab460617a (patch) | |
tree | 406d8f7778691d858dbe3e48e4bbb10e99c0a58a /include/linux/of.h | |
parent | d62b4892f3d9f7dd2002e5309be10719d6805b0f (diff) | |
parent | a937536b868b8369b98967929045f1df54234323 (diff) |
Merge tag 'v3.9-rc3' into drm-intel-next-queued
Backmerge so that I can merge Imre Deak's coalesced sg entries fixes,
which depend upon the new for_each_sg_page introduce in
commit a321e91b6d73ed011ffceed384c40d2785cf723b
Author: Imre Deak <imre.deak@intel.com>
Date: Wed Feb 27 17:02:56 2013 -0800
lib/scatterlist: add simple page iterator
The merge itself is just two trivial conflicts:
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 5ebcc5c8e423..a0f129284948 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -92,7 +92,7 @@ static inline void of_node_put(struct device_node *node) { } | |||
92 | extern struct device_node *of_allnodes; | 92 | extern struct device_node *of_allnodes; |
93 | extern struct device_node *of_chosen; | 93 | extern struct device_node *of_chosen; |
94 | extern struct device_node *of_aliases; | 94 | extern struct device_node *of_aliases; |
95 | extern rwlock_t devtree_lock; | 95 | extern raw_spinlock_t devtree_lock; |
96 | 96 | ||
97 | static inline bool of_have_populated_dt(void) | 97 | static inline bool of_have_populated_dt(void) |
98 | { | 98 | { |
@@ -160,7 +160,7 @@ static inline unsigned long of_read_ulong(const __be32 *cell, int size) | |||
160 | 160 | ||
161 | #define OF_BAD_ADDR ((u64)-1) | 161 | #define OF_BAD_ADDR ((u64)-1) |
162 | 162 | ||
163 | static inline const char* of_node_full_name(struct device_node *np) | 163 | static inline const char *of_node_full_name(const struct device_node *np) |
164 | { | 164 | { |
165 | return np ? np->full_name : "<no-node>"; | 165 | return np ? np->full_name : "<no-node>"; |
166 | } | 166 | } |
@@ -277,6 +277,8 @@ extern struct device_node *of_parse_phandle(const struct device_node *np, | |||
277 | extern int of_parse_phandle_with_args(const struct device_node *np, | 277 | extern int of_parse_phandle_with_args(const struct device_node *np, |
278 | const char *list_name, const char *cells_name, int index, | 278 | const char *list_name, const char *cells_name, int index, |
279 | struct of_phandle_args *out_args); | 279 | struct of_phandle_args *out_args); |
280 | extern int of_count_phandle_with_args(const struct device_node *np, | ||
281 | const char *list_name, const char *cells_name); | ||
280 | 282 | ||
281 | extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)); | 283 | extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)); |
282 | extern int of_alias_get_id(struct device_node *np, const char *stem); | 284 | extern int of_alias_get_id(struct device_node *np, const char *stem); |
@@ -467,6 +469,13 @@ static inline int of_parse_phandle_with_args(struct device_node *np, | |||
467 | return -ENOSYS; | 469 | return -ENOSYS; |
468 | } | 470 | } |
469 | 471 | ||
472 | static inline int of_count_phandle_with_args(struct device_node *np, | ||
473 | const char *list_name, | ||
474 | const char *cells_name) | ||
475 | { | ||
476 | return -ENOSYS; | ||
477 | } | ||
478 | |||
470 | static inline int of_alias_get_id(struct device_node *np, const char *stem) | 479 | static inline int of_alias_get_id(struct device_node *np, const char *stem) |
471 | { | 480 | { |
472 | return -ENOSYS; | 481 | return -ENOSYS; |