aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/kernel/cpu/irq/intc.c2
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);