Commit 7ec8af9e authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Ralf Baechle

MIPS: Loongson: Convert to new irq_chip functions

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2196/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f8396c17
...@@ -16,24 +16,22 @@ ...@@ -16,24 +16,22 @@
#include <loongson.h> #include <loongson.h>
static inline void bonito_irq_enable(unsigned int irq) static inline void bonito_irq_enable(struct irq_data *d)
{ {
LOONGSON_INTENSET = (1 << (irq - LOONGSON_IRQ_BASE)); LOONGSON_INTENSET = (1 << (d->irq - LOONGSON_IRQ_BASE));
mmiowb(); mmiowb();
} }
static inline void bonito_irq_disable(unsigned int irq) static inline void bonito_irq_disable(struct irq_data *d)
{ {
LOONGSON_INTENCLR = (1 << (irq - LOONGSON_IRQ_BASE)); LOONGSON_INTENCLR = (1 << (d->irq - LOONGSON_IRQ_BASE));
mmiowb(); mmiowb();
} }
static struct irq_chip bonito_irq_type = { static struct irq_chip bonito_irq_type = {
.name = "bonito_irq", .name = "bonito_irq",
.ack = bonito_irq_disable, .irq_mask = bonito_irq_disable,
.mask = bonito_irq_disable, .irq_unmask = bonito_irq_enable,
.mask_ack = bonito_irq_disable,
.unmask = bonito_irq_enable,
}; };
static struct irqaction __maybe_unused dma_timeout_irqaction = { static struct irqaction __maybe_unused dma_timeout_irqaction = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment