diff options
author | Kumar Gala <galak@freescale.com> | 2005-05-23 12:29:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-23 10:58:31 -0700 |
commit | e16fa6b9d2ad9467cf5bdf517e6b6f45e5867ad6 (patch) | |
tree | 0bf32353105286a5624aeea862d35a4bbae09851 /arch/ppc | |
parent | 1263cc67c09bc7f913a6877f3ba0427f0b76617e (diff) | |
download | lwn-e16fa6b9d2ad9467cf5bdf517e6b6f45e5867ad6.tar.gz lwn-e16fa6b9d2ad9467cf5bdf517e6b6f45e5867ad6.zip |
[PATCH] ppc32: Fix an off-by-one error in ipic_init
There is an off-by-one error in the IPIC code that configures the
external interrupts (Edge or Level Sensitive).
Signed-off-by: Randy Vinson <rvinson@mvista.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc')
-rw-r--r-- | arch/ppc/syslib/ipic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc/syslib/ipic.c b/arch/ppc/syslib/ipic.c index acb2cde3171f..580ed658e872 100644 --- a/arch/ppc/syslib/ipic.c +++ b/arch/ppc/syslib/ipic.c @@ -479,7 +479,7 @@ void __init ipic_init(phys_addr_t phys_addr, temp = 0; for (i = 0 ; i < senses_count ; i++) { if ((senses[i] & IRQ_SENSE_MASK) == IRQ_SENSE_EDGE) { - temp |= 1 << (16 - i); + temp |= 1 << (15 - i); if (i != 0) irq_desc[i + irq_offset + MPC83xx_IRQ_EXT1 - 1].status = 0; else |