Skip to content

Commit 3085ef9

Browse files
DragonBluepKAGA-KOKO
authored andcommitted
irqchip/ath79-misc: Fix missing prototypes warnings
ath79_misc_irq_init() was defined but unused since commit 51fa4f8 ("MIPS: ath79: drop legacy IRQ code"), so it's time to drop it. The build also warns about a missing prototype of get_c0_perfcount_int(). Remove the stale leftover function and add the missing include. Signed-off-by: Shiji Yang <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/OSBPR01MB167032D2017645200787AAEBBC72A@OSBPR01MB1670.jpnprd01.prod.outlook.com
1 parent 8a2277a commit 3085ef9

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

drivers/irqchip/irq-ath79-misc.c

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include <linux/of_address.h>
1616
#include <linux/of_irq.h>
1717

18+
#include <asm/time.h>
19+
1820
#define AR71XX_RESET_REG_MISC_INT_STATUS 0
1921
#define AR71XX_RESET_REG_MISC_INT_ENABLE 4
2022

@@ -177,21 +179,3 @@ static int __init ar7240_misc_intc_of_init(
177179

178180
IRQCHIP_DECLARE(ar7240_misc_intc, "qca,ar7240-misc-intc",
179181
ar7240_misc_intc_of_init);
180-
181-
void __init ath79_misc_irq_init(void __iomem *regs, int irq,
182-
int irq_base, bool is_ar71xx)
183-
{
184-
struct irq_domain *domain;
185-
186-
if (is_ar71xx)
187-
ath79_misc_irq_chip.irq_mask_ack = ar71xx_misc_irq_mask;
188-
else
189-
ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack;
190-
191-
domain = irq_domain_create_legacy(NULL, ATH79_MISC_IRQ_COUNT,
192-
irq_base, 0, &misc_irq_domain_ops, regs);
193-
if (!domain)
194-
panic("Failed to create MISC irqdomain");
195-
196-
ath79_misc_intc_domain_init(domain, irq);
197-
}

0 commit comments

Comments
 (0)