From: David Daney Date: Thu, 3 Sep 2009 23:10:47 +0000 (-0700) Subject: Staging: Octeon: Use symbolic values for irq numbers. X-Git-Tag: submit/tizen/20141203.153721~13679^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aabb89d6fa4c70d77fe180ee794f857decde4010;p=platform%2Fkernel%2Flinux-arm64.git Staging: Octeon: Use symbolic values for irq numbers. 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 Signed-off-by: Ralf Baechle --- diff --git a/drivers/staging/octeon/ethernet-spi.c b/drivers/staging/octeon/ethernet-spi.c index 66190b0cb68..00dc0f4bad1 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); } }