]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: Lantiq: Fix eiu interrupt loading code
authorJohn Crispin <john@phrozen.org>
Thu, 9 Jun 2016 15:09:51 +0000 (17:09 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 24 Jul 2016 10:31:44 +0000 (12:31 +0200)
commitfe46e5032ede30e7a00b713c86dc4f598e7cf99f
tree58541a99f4e1c1d667f306c93c6a237902f0d97a
parent7840d6188b44d94a0a9a4d9e9e7108f8eef67de2
MIPS: Lantiq: Fix eiu interrupt loading code

Using of_irq_count to load the irq index from the devicetree is incorrect.
This will cause the kernel to map them regardless, even if they dont
actually get used. Change the code to use of_property_count_u32_elems()
instead which is the correct API to use in this case.

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