mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-01 08:20:44 -05:00
IRQCHIP: irq_cpu: declare irqchip table entry
Allow the MIPS CPU interrupt controller to be probed from DT using the generic __irqchip_of_table for platforms which use irqchip_init. This will avoid such platforms needing to duplicate the compatible string & init function pointer. [[email protected]: Resolved conflict due the preceeding commit that moves irq-cpu.c. Signed-off-by: Paul Burton <[email protected]> Cc: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: Qais Yousef <[email protected]> Cc: Andrew Bresticker <[email protected]> Cc: [email protected] Cc: Felix Fietkau <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/10131/ Signed-off-by: Ralf Baechle <[email protected]>
This commit is contained in:
parent
67e38cf293
commit
892b8cf06d
1 changed files with 3 additions and 0 deletions
|
|
@ -38,6 +38,8 @@
|
|||
#include <asm/mipsmtregs.h>
|
||||
#include <asm/setup.h>
|
||||
|
||||
#include "irqchip.h"
|
||||
|
||||
static inline void unmask_mips_irq(struct irq_data *d)
|
||||
{
|
||||
set_c0_status(0x100 << (d->irq - MIPS_CPU_IRQ_BASE));
|
||||
|
|
@ -167,3 +169,4 @@ int __init mips_cpu_irq_of_init(struct device_node *of_node,
|
|||
__mips_cpu_irq_init(of_node);
|
||||
return 0;
|
||||
}
|
||||
IRQCHIP_DECLARE(cpu_intc, "mti,cpu-interrupt-controller", mips_cpu_irq_of_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue