diff options
-rw-r--r-- | arch/sh/boards/mach-se/7722/irq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sh/boards/mach-se/7722/irq.c b/arch/sh/boards/mach-se/7722/irq.c index 4eb31acfafef..b221b6842b0d 100644 --- a/arch/sh/boards/mach-se/7722/irq.c +++ b/arch/sh/boards/mach-se/7722/irq.c | |||
@@ -57,15 +57,16 @@ static void se7722_irq_demux(unsigned int irq, struct irq_desc *desc) | |||
57 | */ | 57 | */ |
58 | void __init init_se7722_IRQ(void) | 58 | void __init init_se7722_IRQ(void) |
59 | { | 59 | { |
60 | int i; | 60 | int i, irq; |
61 | 61 | ||
62 | ctrl_outw(0, IRQ01_MASK); /* disable all irqs */ | 62 | ctrl_outw(0, IRQ01_MASK); /* disable all irqs */ |
63 | ctrl_outw(0x2000, 0xb03fffec); /* mrshpc irq enable */ | 63 | ctrl_outw(0x2000, 0xb03fffec); /* mrshpc irq enable */ |
64 | 64 | ||
65 | for (i = 0; i < SE7722_FPGA_IRQ_NR; i++) { | 65 | for (i = 0; i < SE7722_FPGA_IRQ_NR; i++) { |
66 | se7722_fpga_irq[i] = create_irq(); | 66 | irq = create_irq(); |
67 | if (se7722_fpga_irq[i] < 0) | 67 | if (irq < 0) |
68 | return; | 68 | return; |
69 | se7722_fpga_irq[i] = irq; | ||
69 | 70 | ||
70 | set_irq_chip_and_handler_name(se7722_fpga_irq[i], | 71 | set_irq_chip_and_handler_name(se7722_fpga_irq[i], |
71 | &se7722_irq_chip, | 72 | &se7722_irq_chip, |