]> git.baikalelectronics.ru Git - kernel.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)
commit6565c2bc514f05d90e8fde81ec8a4d48bf4bfd8d
treea9262f338bc91a050a93ceb2785c8c766b1dc365
parentae0bb33ee751bc2cb1bf807191d7c780af12ac72
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