]> 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)
commit0e49629ba3206d0176685852290128c2f486fbb0
treea9262f338bc91a050a93ceb2785c8c766b1dc365
parent8569dfb2e4260071ac33d97adf85187383d00b8e
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