diff -Naurp linux-2.6.17-rc5.orig/arch/mips/pci/pci.c linux-2.6.17-rc5/arch/mips/pci/pci.c --- linux-2.6.17-rc5.orig/arch/mips/pci/pci.c 2006-06-04 02:19:06.000000000 -0400 +++ linux-2.6.17-rc5/arch/mips/pci/pci.c 2006-06-04 02:22:24.000000000 -0400 @@ -179,7 +179,7 @@ static int pcibios_enable_resources(stru pci_read_config_word(dev, PCI_COMMAND, &cmd); old_cmd = cmd; - for (idx=0; idx < PCI_NUM_RESOURCES; idx++) { + for(idx=0; idx<6; idx++) { /* Only set up the requested stuff */ if (!(mask & (1<