Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6ec367091a418dd6119e381758940a38b180089c
Commit:     6ec367091a418dd6119e381758940a38b180089c
Parent:     057b184a007376562e905aa39f1ba352fb8d78b1
Author:     John Rigby <[EMAIL PROTECTED]>
AuthorDate: Sat Apr 7 08:57:37 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Mon Apr 30 11:05:48 2007 +1000

    [POWERPC] Avoid putting cpu node twice
    
    Call of_find_node_by_type with NULL instead of np
    so the cpu node does not get put twice.
    This was causing kref_put warnings.
    
    Signed-off-by: John Rigby <[EMAIL PROTECTED]>
    Acked-by: Sylvain Munaut <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/platforms/52xx/lite5200.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/52xx/lite5200.c 
b/arch/powerpc/platforms/52xx/lite5200.c
index 4f5ebaa..8e2646a 100644
--- a/arch/powerpc/platforms/52xx/lite5200.c
+++ b/arch/powerpc/platforms/52xx/lite5200.c
@@ -108,9 +108,11 @@ static void __init lite5200_setup_arch(void)
        lite5200_setup_cpu();   /* Platorm specific */
 
 #ifdef CONFIG_PCI
-       np = of_find_node_by_type(np, "pci");
-       if (np)
+       np = of_find_node_by_type(NULL, "pci");
+       if (np) {
                mpc52xx_add_bridge(np);
+               of_node_put(np);
+       }
 #endif
 
 #ifdef CONFIG_BLK_DEV_INITRD
-
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

Reply via email to