diff options
Diffstat (limited to 'arch/mips/pci')
-rw-r--r-- | arch/mips/pci/fixup-vr4133.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/pci/fixup-vr4133.c b/arch/mips/pci/fixup-vr4133.c index b1a5b318f26f..a8d9d22b13df 100644 --- a/arch/mips/pci/fixup-vr4133.c +++ b/arch/mips/pci/fixup-vr4133.c | |||
@@ -17,6 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/pci.h> | 19 | #include <linux/pci.h> |
20 | #include <linux/kernel.h> | ||
20 | 21 | ||
21 | #include <asm/io.h> | 22 | #include <asm/io.h> |
22 | #include <asm/i8259.h> | 23 | #include <asm/i8259.h> |
@@ -143,7 +144,7 @@ int rockhopper_get_irq(struct pci_dev *dev, u8 pin, u8 slot) | |||
143 | if (bus == NULL) | 144 | if (bus == NULL) |
144 | return -1; | 145 | return -1; |
145 | 146 | ||
146 | for (i = 0; i < sizeof (int_map) / sizeof (int_map[0]); i++) { | 147 | for (i = 0; i < ARRAY_SIZE(int_map); i++) { |
147 | if (int_map[i].bus == bus->number && int_map[i].slot == slot) { | 148 | if (int_map[i].bus == bus->number && int_map[i].slot == slot) { |
148 | int line; | 149 | int line; |
149 | for (line = 0; line < 4; line++) | 150 | for (line = 0; line < 4; line++) |