Commit d6f1d2a9 authored by Mark A. Greer's avatar Mark A. Greer Committed by Paul Mackerras

[POWERPC] Routine to find the devtree node of a linux,phandle

Signed-off-by: default avatarMark A. Greer <mgreer@mvista.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 88e68731
...@@ -158,6 +158,12 @@ void __dt_fixup_mac_addresses(u32 startindex, ...); ...@@ -158,6 +158,12 @@ void __dt_fixup_mac_addresses(u32 startindex, ...);
__dt_fixup_mac_addresses(0, __VA_ARGS__, NULL) __dt_fixup_mac_addresses(0, __VA_ARGS__, NULL)
static inline void *find_node_by_linuxphandle(const u32 linuxphandle)
{
return find_node_by_prop_value(NULL, "linux,phandle",
(char *)&linuxphandle, sizeof(u32));
}
static inline void *malloc(u32 size) static inline void *malloc(u32 size)
{ {
return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL; return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment