aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-05-26 00:52:28 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-05-26 00:52:28 -0400
commit3709ab8dfa23cab553ea9ffea3372c8e0a28f332 (patch)
tree1073ee3f2185e9c20d4a806f6f6648db55767ef0
parent8fc40238b4ebf07cd11ca9707843338be22af72f (diff)
sh: irq: Fix up imask build warnings.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/kernel/cpu/irq/imask.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/irq/imask.c b/arch/sh/kernel/cpu/irq/imask.c
index 3bef3c2629ad..6b5d191eec3a 100644
--- a/arch/sh/kernel/cpu/irq/imask.c
+++ b/arch/sh/kernel/cpu/irq/imask.c
@@ -53,7 +53,7 @@ static inline void set_interrupt_registers(int ip)
53 53
54static void mask_imask_irq(unsigned int irq) 54static void mask_imask_irq(unsigned int irq)
55{ 55{
56 clear_bit(irq, &imask_mask); 56 clear_bit(irq, imask_mask);
57 if (interrupt_priority < IMASK_PRIORITY - irq) 57 if (interrupt_priority < IMASK_PRIORITY - irq)
58 interrupt_priority = IMASK_PRIORITY - irq; 58 interrupt_priority = IMASK_PRIORITY - irq;
59 set_interrupt_registers(interrupt_priority); 59 set_interrupt_registers(interrupt_priority);
@@ -61,7 +61,7 @@ static void mask_imask_irq(unsigned int irq)
61 61
62static void unmask_imask_irq(unsigned int irq) 62static void unmask_imask_irq(unsigned int irq)
63{ 63{
64 set_bit(irq, &imask_mask); 64 set_bit(irq, imask_mask);
65 interrupt_priority = IMASK_PRIORITY - 65 interrupt_priority = IMASK_PRIORITY -
66 find_first_zero_bit(imask_mask, IMASK_PRIORITY); 66 find_first_zero_bit(imask_mask, IMASK_PRIORITY);
67 set_interrupt_registers(interrupt_priority); 67 set_interrupt_registers(interrupt_priority);