aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/pci
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/pci')
-rw-r--r--arch/mips/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index a8d499b0a36f..170c6650f961 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -164,7 +164,7 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask)
164 164
165 pci_read_config_word(dev, PCI_COMMAND, &cmd); 165 pci_read_config_word(dev, PCI_COMMAND, &cmd);
166 old_cmd = cmd; 166 old_cmd = cmd;
167 for(idx=0; idx<6; idx++) { 167 for (idx=0; idx < PCI_NUM_RESOURCES; idx++) {
168 /* Only set up the requested stuff */ 168 /* Only set up the requested stuff */
169 if (!(mask & (1<<idx))) 169 if (!(mask & (1<<idx)))
170 continue; 170 continue;