aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/pci
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/pci')
-rw-r--r--arch/mips/pci/msi-octeon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/pci/msi-octeon.c b/arch/mips/pci/msi-octeon.c
index 1e31526f0e53..5ce1a6a6494a 100644
--- a/arch/mips/pci/msi-octeon.c
+++ b/arch/mips/pci/msi-octeon.c
@@ -181,7 +181,7 @@ void arch_teardown_msi_irq(unsigned int irq)
181 int number_irqs; 181 int number_irqs;
182 uint64_t bitmask; 182 uint64_t bitmask;
183 183
184 if ((irq < OCTEON_IRQ_MSI_BIT0) || (irq > OCTEON_IRQ_MSI_BIT63)) 184 if ((irq < OCTEON_IRQ_MSI_BIT0) || (irq > OCTEON_IRQ_MSI_LAST))
185 panic("arch_teardown_msi_irq: Attempted to teardown illegal " 185 panic("arch_teardown_msi_irq: Attempted to teardown illegal "
186 "MSI interrupt (%d)", irq); 186 "MSI interrupt (%d)", irq);
187 irq -= OCTEON_IRQ_MSI_BIT0; 187 irq -= OCTEON_IRQ_MSI_BIT0;
@@ -337,7 +337,7 @@ static int __init octeon_msi_initialize(void)
337{ 337{
338 int irq; 338 int irq;
339 339
340 for (irq = OCTEON_IRQ_MSI_BIT0; irq <= OCTEON_IRQ_MSI_BIT63; irq++) { 340 for (irq = OCTEON_IRQ_MSI_BIT0; irq <= OCTEON_IRQ_MSI_LAST; irq++) {
341 set_irq_chip_and_handler(irq, &octeon_irq_chip_msi, 341 set_irq_chip_and_handler(irq, &octeon_irq_chip_msi,
342 handle_percpu_irq); 342 handle_percpu_irq);
343 } 343 }