]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/opal-irqchip: Use interrupt names if present
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 6 Feb 2017 05:07:36 +0000 (16:07 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 8 Feb 2017 23:31:37 +0000 (10:31 +1100)
commit2717a33d60745f2f72e521cdaedf79b00f66f8ca
treea9262f338bc91a050a93ceb2785c8c766b1dc365
parent470a36a8c014e5cac7bb2df382948597f7ec1b2c
powerpc/opal-irqchip: Use interrupt names if present

Recent versions of OPAL can provide names for the various OPAL interrupts,
so let's use them. This also modernises the code that fetches the
interrupt array to use the helpers provided by the generic code instead
of hand-parsing the property.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[mpe: Free irqs on error, check allocation of names, consolidate error
      handling, whitespace.]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-irqchip.c