diff options
-rw-r--r-- | drivers/irqchip/irq-mbigen.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c index 2fa1e457190d..31d6b5a582d2 100644 --- a/drivers/irqchip/irq-mbigen.c +++ b/drivers/irqchip/irq-mbigen.c | |||
@@ -106,10 +106,7 @@ static inline void get_mbigen_type_reg(irq_hw_number_t hwirq, | |||
106 | static inline void get_mbigen_clear_reg(irq_hw_number_t hwirq, | 106 | static inline void get_mbigen_clear_reg(irq_hw_number_t hwirq, |
107 | u32 *mask, u32 *addr) | 107 | u32 *mask, u32 *addr) |
108 | { | 108 | { |
109 | unsigned int ofst; | 109 | unsigned int ofst = (hwirq / 32) * 4; |
110 | |||
111 | hwirq -= RESERVED_IRQ_PER_MBIGEN_CHIP; | ||
112 | ofst = hwirq / 32 * 4; | ||
113 | 110 | ||
114 | *mask = 1 << (hwirq % 32); | 111 | *mask = 1 << (hwirq % 32); |
115 | *addr = ofst + REG_MBIGEN_CLEAR_OFFSET; | 112 | *addr = ofst + REG_MBIGEN_CLEAR_OFFSET; |