From: Mark A. Greer Date: Tue, 27 Mar 2007 22:31:41 +0000 (-0700) Subject: [POWERPC] Routine to find the devtree node of a linux,phandle X-Git-Tag: v2.6.22-rc1~1109^2~102 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d6f1d2a9a83f447af6c210c8268ce117772da77f;p=linux-2.6-omap-h63xx.git [POWERPC] Routine to find the devtree node of a linux,phandle Signed-off-by: Mark A. Greer Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index fbd9030d660..ee0f9c25f83 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h @@ -158,6 +158,12 @@ void __dt_fixup_mac_addresses(u32 startindex, ...); __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) { return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL;