MIPS: Lantiq: Use the real EXIN count
authorJohn Crispin <john@phrozen.org>
Thu, 9 Jun 2016 15:09:52 +0000 (17:09 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 24 Jul 2016 10:31:58 +0000 (12:31 +0200)
commitf97e5e8ef8e18b7a2799068880cc3e5b10ac4efc
treefbfa877e9426f19c08530aa570b05a697ac7c847
parentfe46e5032ede30e7a00b713c86dc4f598e7cf99f
MIPS: Lantiq: Use the real EXIN count

We runtime load the available external interrupts into an array and store
the number inside exin_avail. Some of the code however uses MAX_EIU for
looping over the array which may partially be 0. This is a cosmetic fix as
the existing code works as is. It is just nicer to only loop over the array
elements that were actually populated during probe.

Signed-off-by: John Crispin <john@phrozen.org>
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/13602/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lantiq/irq.c