Skip to content

Commit

Permalink
sh: Fix test of unsigned in se7722_irq_demux()
Browse files Browse the repository at this point in the history
se7722_fpga_irq[] is unsigned so the test does not work.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Roel Kluin authored and Paul Mundt committed Dec 16, 2009
1 parent 1980fdc commit 204fc39
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/sh/boards/mach-se/7722/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,16 @@ static void se7722_irq_demux(unsigned int irq, struct irq_desc *desc)
*/
void __init init_se7722_IRQ(void)
{
int i;
int i, irq;

ctrl_outw(0, IRQ01_MASK); /* disable all irqs */
ctrl_outw(0x2000, 0xb03fffec); /* mrshpc irq enable */

for (i = 0; i < SE7722_FPGA_IRQ_NR; i++) {
se7722_fpga_irq[i] = create_irq();
if (se7722_fpga_irq[i] < 0)
irq = create_irq();
if (irq < 0)
return;
se7722_fpga_irq[i] = irq;

set_irq_chip_and_handler_name(se7722_fpga_irq[i],
&se7722_irq_chip,
Expand Down

0 comments on commit 204fc39

Please sign in to comment.