linux-mips
[Top] [All Lists]

[PATCH] Staging: Octeon: Use symbolic values for irq numbers.

To: linux-mips@linux-mips.org, ralf@linux-mips.org, gregkh@suse.de
Subject: [PATCH] Staging: Octeon: Use symbolic values for irq numbers.
From: David Daney <ddaney@caviumnetworks.com>
Date: Thu, 3 Sep 2009 16:10:47 -0700
Cc: David Daney <ddaney@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
In addition to being magic numbers, the irq number passed to free_irq
is incorrect.  We need to use the correct symbolic value instead.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---

Octeon being a member of the mips archecture, this could merge via
Ralf's linux-mips.org tree.

 drivers/staging/octeon/ethernet-spi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/octeon/ethernet-spi.c 
b/drivers/staging/octeon/ethernet-spi.c
index 66190b0..00dc0f4 100644
--- a/drivers/staging/octeon/ethernet-spi.c
+++ b/drivers/staging/octeon/ethernet-spi.c
@@ -317,6 +317,6 @@ void cvm_oct_spi_uninit(struct net_device *dev)
                        cvmx_write_csr(CVMX_SPXX_INT_MSK(interface), 0);
                        cvmx_write_csr(CVMX_STXX_INT_MSK(interface), 0);
                }
-               free_irq(8 + 46, &number_spi_ports);
+               free_irq(OCTEON_IRQ_RML, &number_spi_ports);
        }
 }
-- 
1.6.0.6


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] Staging: Octeon: Use symbolic values for irq numbers., David Daney <=