mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 13:15:57 +00:00
MIPS: rm7000: Convert to new irq_chip functions
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2189/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
e15883da8a
commit
e059852aca
@ -18,23 +18,23 @@
|
|||||||
#include <asm/mipsregs.h>
|
#include <asm/mipsregs.h>
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
|
|
||||||
static inline void unmask_rm7k_irq(unsigned int irq)
|
static inline void unmask_rm7k_irq(struct irq_data *d)
|
||||||
{
|
{
|
||||||
set_c0_intcontrol(0x100 << (irq - RM7K_CPU_IRQ_BASE));
|
set_c0_intcontrol(0x100 << (d->irq - RM7K_CPU_IRQ_BASE));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void mask_rm7k_irq(unsigned int irq)
|
static inline void mask_rm7k_irq(struct irq_data *d)
|
||||||
{
|
{
|
||||||
clear_c0_intcontrol(0x100 << (irq - RM7K_CPU_IRQ_BASE));
|
clear_c0_intcontrol(0x100 << (d->irq - RM7K_CPU_IRQ_BASE));
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct irq_chip rm7k_irq_controller = {
|
static struct irq_chip rm7k_irq_controller = {
|
||||||
.name = "RM7000",
|
.name = "RM7000",
|
||||||
.ack = mask_rm7k_irq,
|
.irq_ack = mask_rm7k_irq,
|
||||||
.mask = mask_rm7k_irq,
|
.irq_mask = mask_rm7k_irq,
|
||||||
.mask_ack = mask_rm7k_irq,
|
.irq_mask_ack = mask_rm7k_irq,
|
||||||
.unmask = unmask_rm7k_irq,
|
.irq_unmask = unmask_rm7k_irq,
|
||||||
.eoi = unmask_rm7k_irq
|
.irq_eoi = unmask_rm7k_irq
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init rm7k_cpu_irq_init(void)
|
void __init rm7k_cpu_irq_init(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user