diff options
Diffstat (limited to 'arch/mips/loongson/common/bonito-irq.c')
| -rw-r--r-- | arch/mips/loongson/common/bonito-irq.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/arch/mips/loongson/common/bonito-irq.c b/arch/mips/loongson/common/bonito-irq.c index 2dc2a4cc632a..1549361696ad 100644 --- a/arch/mips/loongson/common/bonito-irq.c +++ b/arch/mips/loongson/common/bonito-irq.c | |||
| @@ -16,24 +16,22 @@ | |||
| 16 | 16 | ||
| 17 | #include <loongson.h> | 17 | #include <loongson.h> |
| 18 | 18 | ||
| 19 | static inline void bonito_irq_enable(unsigned int irq) | 19 | static inline void bonito_irq_enable(struct irq_data *d) |
| 20 | { | 20 | { |
| 21 | LOONGSON_INTENSET = (1 << (irq - LOONGSON_IRQ_BASE)); | 21 | LOONGSON_INTENSET = (1 << (d->irq - LOONGSON_IRQ_BASE)); |
| 22 | mmiowb(); | 22 | mmiowb(); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | static inline void bonito_irq_disable(unsigned int irq) | 25 | static inline void bonito_irq_disable(struct irq_data *d) |
| 26 | { | 26 | { |
| 27 | LOONGSON_INTENCLR = (1 << (irq - LOONGSON_IRQ_BASE)); | 27 | LOONGSON_INTENCLR = (1 << (d->irq - LOONGSON_IRQ_BASE)); |
| 28 | mmiowb(); | 28 | mmiowb(); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | static struct irq_chip bonito_irq_type = { | 31 | static struct irq_chip bonito_irq_type = { |
| 32 | .name = "bonito_irq", | 32 | .name = "bonito_irq", |
| 33 | .ack = bonito_irq_disable, | 33 | .irq_mask = bonito_irq_disable, |
| 34 | .mask = bonito_irq_disable, | 34 | .irq_unmask = bonito_irq_enable, |
| 35 | .mask_ack = bonito_irq_disable, | ||
| 36 | .unmask = bonito_irq_enable, | ||
| 37 | }; | 35 | }; |
| 38 | 36 | ||
| 39 | static struct irqaction __maybe_unused dma_timeout_irqaction = { | 37 | static struct irqaction __maybe_unused dma_timeout_irqaction = { |
