powerpc/8xx: fix mpc8xx_get_irq() return on no irq
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 10 Mar 2017 10:37:01 +0000 (11:37 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Jun 2017 09:20:44 +0000 (19:20 +1000)
commit3c29b6038828c1f4c9ecbfec14d4fc5e25f1c947
tree79928183bab2f4dbb771fc575876f494b74c4d75
parent362957c27ed0d9ff485d3266ed22d944cbfea6cc
powerpc/8xx: fix mpc8xx_get_irq() return on no irq

IRQ 0 is a valid HW interrupt. So get_irq() shall return 0 when
there is no irq, instead of returning irq_linear_revmap(... ,0)

Fixes: f2a0bd3753dad ("[POWERPC] 8xx: powerpc port of core CPM PIC")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/mpc8xx_pic.c