MIPS: OCTEON: Remove some code limiting NR_IRQS to 255
authorDavid Daney <david.daney@cavium.com>
Tue, 9 Feb 2016 19:00:06 +0000 (11:00 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:01:39 +0000 (14:01 +0200)
commit2253e0b9d991e82210dd08c89bf91584ad25f993
treeed586e5f383c4bd2dc8a731cdcf80028f2dee2af
parent7d52ab163c75bb830185f7ea12bae1db87f12b56
MIPS: OCTEON: Remove some code limiting NR_IRQS to 255

Follow-on patches for OCTEON III will increase the number of irqs to
potentially more than 256.

Increase the width of the octeon_irq_ciu_to_irq to int to be able to
handle this case.  Remove the hacky code that verified that u8 would
not be overflowed.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12495/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/octeon-irq.c