diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-08-07 05:51:19 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-09-20 22:57:48 -0400 |
commit | 6d64d4256cccd3a452ebd8c37a1d41e2d5dab8c6 (patch) | |
tree | baacb7d40fac6a97ac98dc8bbcd703045f03bd94 | |
parent | 96290d808fa4c9b8e744dc1cd032b005179f4710 (diff) |
sh: intc: Fix sense regs oops for IRL IRQs.
IRL doesn't always define sense registers, so don't bother trying to
iterate through the table. This ended up causing an oops on SH-X3
when using IRL mode.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/kernel/cpu/irq/intc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/irq/intc.c b/arch/sh/kernel/cpu/irq/intc.c index a25f70dd6ad7..56819409a36a 100644 --- a/arch/sh/kernel/cpu/irq/intc.c +++ b/arch/sh/kernel/cpu/irq/intc.c | |||
@@ -218,7 +218,7 @@ static int intc_set_sense(unsigned int irq, unsigned int type) | |||
218 | break; | 218 | break; |
219 | } | 219 | } |
220 | 220 | ||
221 | if (!enum_id || !value) | 221 | if (!enum_id || !value || !desc->sense_regs) |
222 | return -EINVAL; | 222 | return -EINVAL; |
223 | 223 | ||
224 | value ^= VALID(0); | 224 | value ^= VALID(0); |