powerpc/powernv: Separate function for OPAL IRQ setup
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 23 Jan 2015 03:25:05 +0000 (14:25 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Jan 2015 04:28:04 +0000 (15:28 +1100)
commitc1c3a526bb4ddbec7639a9fb3b84fede25b201d9
tree2fa22209519544f4733852fd24b4d0696c82c96f
parent08135139430fabdeaa990da8a9e0d436aad0672b
powerpc/powernv: Separate function for OPAL IRQ setup

The patch put the OPAL interrupt setup logic in opal_init() into
seperate function opal_irq_init() for easier code maintaining. The
patch doesn't introduce logic changes except:

   * Rename variable names.
   * Release virtual IRQ upon error from request_irq().
   * Don't cache the virtual IRQ to opal_irqs[] upon error from
     request_irq().

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c