Skip to content

Commit 51fa4f8

Browse files
blogicpaulburton
authored andcommitted
MIPS: ath79: drop legacy IRQ code
With the target now being fully OF based, we can drop the legacy IRQ code. All IRQs are now handled via the new irqchip drivers. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: Pengutronix Kernel Team <kernel@pengutronix.de> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: Felix Fietkau <nbd@nbd.name>
1 parent 6810ed3 commit 51fa4f8

File tree

4 files changed

+7
-174
lines changed

4 files changed

+7
-174
lines changed

arch/mips/ath79/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# under the terms of the GNU General Public License version 2 as published
99
# by the Free Software Foundation.
1010

11-
obj-y := prom.o setup.o irq.o common.o clock.o
11+
obj-y := prom.o setup.o common.o clock.o
1212

1313
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
1414
obj-$(CONFIG_PCI) += pci.o

arch/mips/ath79/irq.c

Lines changed: 0 additions & 169 deletions
This file was deleted.

arch/mips/ath79/setup.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <linux/clk.h>
2020
#include <linux/clk-provider.h>
2121
#include <linux/of_fdt.h>
22+
#include <linux/irqchip.h>
2223

2324
#include <asm/bootinfo.h>
2425
#include <asm/idle.h>
@@ -311,6 +312,11 @@ void __init plat_time_init(void)
311312
mips_hpt_frequency = cpu_clk_rate / 2;
312313
}
313314

315+
void __init arch_init_irq(void)
316+
{
317+
irqchip_init();
318+
}
319+
314320
static int __init ath79_setup(void)
315321
{
316322
if (mips_machtype == ATH79_MACH_GENERIC_OF)

arch/mips/include/asm/mach-ath79/ath79.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,4 @@ static inline u32 ath79_reset_rr(unsigned reg)
178178
void ath79_device_reset_set(u32 mask);
179179
void ath79_device_reset_clear(u32 mask);
180180

181-
void ath79_cpu_irq_init(unsigned irq_wb_chan2, unsigned irq_wb_chan3);
182-
void ath79_misc_irq_init(void __iomem *regs, int irq,
183-
int irq_base, bool is_ar71xx);
184-
185181
#endif /* __ASM_MACH_ATH79_H */

0 commit comments

Comments
 (0)