mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[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>
This commit is contained in:
parent
88e687313e
commit
d6f1d2a9a8
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue