Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: Remove ununsed set_irq_flags

Now that all users of set_irq_flags and custom flags are converted to
genirq functions, the ARM specific set_irq_flags can be removed.

Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Rob Herring and committed by
Thomas Gleixner
eb811129 3e15135b

-26
-6
arch/arm/include/asm/hw_irq.h
··· 11 11 pr_crit("unexpected IRQ trap at vector %02x\n", irq); 12 12 } 13 13 14 - void set_irq_flags(unsigned int irq, unsigned int flags); 15 - 16 - #define IRQF_VALID (1 << 0) 17 - #define IRQF_PROBE (1 << 1) 18 - #define IRQF_NOAUTOEN (1 << 2) 19 - 20 14 #define ARCH_IRQ_INIT_FLAGS (IRQ_NOREQUEST | IRQ_NOPROBE) 21 15 22 16 #endif
-20
arch/arm/kernel/irq.c
··· 79 79 handle_IRQ(irq, regs); 80 80 } 81 81 82 - void set_irq_flags(unsigned int irq, unsigned int iflags) 83 - { 84 - unsigned long clr = 0, set = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN; 85 - 86 - if (irq >= nr_irqs) { 87 - pr_err("Trying to set irq flags for IRQ%d\n", irq); 88 - return; 89 - } 90 - 91 - if (iflags & IRQF_VALID) 92 - clr |= IRQ_NOREQUEST; 93 - if (iflags & IRQF_PROBE) 94 - clr |= IRQ_NOPROBE; 95 - if (!(iflags & IRQF_NOAUTOEN)) 96 - clr |= IRQ_NOAUTOEN; 97 - /* Order is clear bits in "clr" then set bits in "set" */ 98 - irq_modify_status(irq, clr, set & ~clr); 99 - } 100 - EXPORT_SYMBOL_GPL(set_irq_flags); 101 - 102 82 void __init init_IRQ(void) 103 83 { 104 84 int ret;