Skip to content

Commit

Permalink
Staging: Octeon: Use symbolic values for irq numbers.
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
David Daney authored and Ralf Baechle committed Nov 23, 2009
1 parent 9326e36 commit aabb89d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/octeon/ethernet-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit aabb89d

Please sign in to comment.