diff options
Diffstat (limited to 'arch/mips/sni/rm200.c')
-rw-r--r-- | arch/mips/sni/rm200.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/mips/sni/rm200.c b/arch/mips/sni/rm200.c index 94f115c6b2e0..67b061eef6cd 100644 --- a/arch/mips/sni/rm200.c +++ b/arch/mips/sni/rm200.c | |||
@@ -162,16 +162,16 @@ static void sni_rm200_hwint(void) | |||
162 | int irq; | 162 | int irq; |
163 | 163 | ||
164 | if (pending & C_IRQ5) | 164 | if (pending & C_IRQ5) |
165 | do_IRQ (MIPS_CPU_IRQ_BASE + 7); | 165 | do_IRQ(MIPS_CPU_IRQ_BASE + 7); |
166 | else if (pending & C_IRQ0) { | 166 | else if (pending & C_IRQ0) { |
167 | clear_c0_status (IE_IRQ0); | 167 | clear_c0_status(IE_IRQ0); |
168 | mask = *(volatile u8 *)SNI_RM200_INT_ENA_REG ^ 0x1f; | 168 | mask = *(volatile u8 *)SNI_RM200_INT_ENA_REG ^ 0x1f; |
169 | stat = *(volatile u8 *)SNI_RM200_INT_STAT_REG ^ 0x14; | 169 | stat = *(volatile u8 *)SNI_RM200_INT_STAT_REG ^ 0x14; |
170 | irq = ffs(stat & mask & 0x1f); | 170 | irq = ffs(stat & mask & 0x1f); |
171 | 171 | ||
172 | if (likely(irq > 0)) | 172 | if (likely(irq > 0)) |
173 | do_IRQ (irq + SNI_RM200_INT_START - 1); | 173 | do_IRQ(irq + SNI_RM200_INT_START - 1); |
174 | set_c0_status (IE_IRQ0); | 174 | set_c0_status(IE_IRQ0); |
175 | } | 175 | } |
176 | } | 176 | } |
177 | 177 | ||
@@ -187,7 +187,7 @@ void __init sni_rm200_irq_init(void) | |||
187 | set_irq_chip(i, &rm200_irq_type); | 187 | set_irq_chip(i, &rm200_irq_type); |
188 | sni_hwint = sni_rm200_hwint; | 188 | sni_hwint = sni_rm200_hwint; |
189 | change_c0_status(ST0_IM, IE_IRQ0); | 189 | change_c0_status(ST0_IM, IE_IRQ0); |
190 | setup_irq (SNI_RM200_INT_START + 0, &sni_isa_irq); | 190 | setup_irq(SNI_RM200_INT_START + 0, &sni_isa_irq); |
191 | } | 191 | } |
192 | 192 | ||
193 | void __init sni_rm200_init(void) | 193 | void __init sni_rm200_init(void) |