Skip to contentSkip to conversation

powerpc/85xx: Fix compile error in mpc85xx_mds.c

PATCH New Kumar Gala 1 participant 1 message Aug 5, 2010

Subsystems (2)
lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 powerpc/85xx: Fix compile error in mpc85xx_mds.c

arch/powerpc/platforms/85xx/mpc85xx_mds.c: In function 'mpc85xx_mds_setup_arch':
arch/powerpc/platforms/85xx/mpc85xx_mds.c:367: error: 'np' undeclared (first use in this function) arch/powerpc/platforms/85xx/mpc85xx_mds.c:367: error: (Each undeclared identifier is reported only once arch/powerpc/platforms/85xx/mpc85xx_mds.c:367: error: for each function it appears in.)

Some code cleaned dropped need decleration of 'np'.

---
 arch/powerpc/platforms/85xx/mpc85xx_mds.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/platforms/85xx/mpc85xx_mds.c +1 -0
index c8be7b5..ebd2b2f 100644
@@ -357,6 +357,7 @@ static void __init mpc85xx_mds_setup_arch(void)
 {
 #ifdef CONFIG_PCI
 	struct pci_controller *hose;
+	struct device_node *np = NULL;
 #endif
 	dma_addr_t max = 0xffffffff;
 
Signature · 1 line
1.6.0.6