Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d6f1d2a9a83f447af6c210c8268ce117772da77f Commit: d6f1d2a9a83f447af6c210c8268ce117772da77f Parent: 88e687313e683ee006152d611b95f40900e3bce0 Author: Mark A. Greer <[EMAIL PROTECTED]> AuthorDate: Tue Mar 27 15:31:41 2007 -0700 Committer: Paul Mackerras <[EMAIL PROTECTED]> CommitDate: Fri Apr 13 03:55:16 2007 +1000
[POWERPC] Routine to find the devtree node of a linux,phandle Signed-off-by: Mark A. Greer <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- 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 fbd9030..ee0f9c2 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; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html