diff options
author | Mark A. Greer <mgreer@mvista.com> | 2007-03-27 18:31:41 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 13:55:16 -0400 |
commit | d6f1d2a9a83f447af6c210c8268ce117772da77f (patch) | |
tree | ba1eac4821c7ee8cf172fb67918f2eeb4255bfb8 /arch/powerpc/boot | |
parent | 88e687313e683ee006152d611b95f40900e3bce0 (diff) |
[POWERPC] Routine to find the devtree node of a linux,phandle
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r-- | arch/powerpc/boot/ops.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index fbd9030d660e..ee0f9c25f839 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h | |||
@@ -158,6 +158,12 @@ void __dt_fixup_mac_addresses(u32 startindex, ...); | |||
158 | __dt_fixup_mac_addresses(0, __VA_ARGS__, NULL) | 158 | __dt_fixup_mac_addresses(0, __VA_ARGS__, NULL) |
159 | 159 | ||
160 | 160 | ||
161 | static inline void *find_node_by_linuxphandle(const u32 linuxphandle) | ||
162 | { | ||
163 | return find_node_by_prop_value(NULL, "linux,phandle", | ||
164 | (char *)&linuxphandle, sizeof(u32)); | ||
165 | } | ||
166 | |||
161 | static inline void *malloc(u32 size) | 167 | static inline void *malloc(u32 size) |
162 | { | 168 | { |
163 | return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL; | 169 | return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL; |