aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorJohn Rigby <jcrigby@gmail.com>2007-04-06 18:57:37 -0400
committerPaul Mackerras <paulus@samba.org>2007-04-29 21:05:48 -0400
commit6ec367091a418dd6119e381758940a38b180089c (patch)
tree08a6d5f0b5629076bd02b8fb60fd909c8ade091d /arch/powerpc
parent057b184a007376562e905aa39f1ba352fb8d78b1 (diff)
[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 <jrigby@freescale.com> Acked-by: Sylvain Munaut <tnt@246tNt.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/52xx/lite5200.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c
index 4f5ebaadcb50..8e2646ac417b 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)
108 lite5200_setup_cpu(); /* Platorm specific */ 108 lite5200_setup_cpu(); /* Platorm specific */
109 109
110#ifdef CONFIG_PCI 110#ifdef CONFIG_PCI
111 np = of_find_node_by_type(np, "pci"); 111 np = of_find_node_by_type(NULL, "pci");
112 if (np) 112 if (np) {
113 mpc52xx_add_bridge(np); 113 mpc52xx_add_bridge(np);
114 of_node_put(np);
115 }
114#endif 116#endif
115 117
116#ifdef CONFIG_BLK_DEV_INITRD 118#ifdef CONFIG_BLK_DEV_INITRD