|
@@ -79,26 +79,6 @@ asm_do_IRQ(unsigned int irq, struct pt_regs *regs)
|
|
|
handle_IRQ(irq, regs);
|
|
|
}
|
|
|
|
|
|
-void set_irq_flags(unsigned int irq, unsigned int iflags)
|
|
|
-{
|
|
|
- unsigned long clr = 0, set = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN;
|
|
|
-
|
|
|
- if (irq >= nr_irqs) {
|
|
|
- pr_err("Trying to set irq flags for IRQ%d\n", irq);
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (iflags & IRQF_VALID)
|
|
|
- clr |= IRQ_NOREQUEST;
|
|
|
- if (iflags & IRQF_PROBE)
|
|
|
- clr |= IRQ_NOPROBE;
|
|
|
- if (!(iflags & IRQF_NOAUTOEN))
|
|
|
- clr |= IRQ_NOAUTOEN;
|
|
|
- /* Order is clear bits in "clr" then set bits in "set" */
|
|
|
- irq_modify_status(irq, clr, set & ~clr);
|
|
|
-}
|
|
|
-EXPORT_SYMBOL_GPL(set_irq_flags);
|
|
|
-
|
|
|
void __init init_IRQ(void)
|
|
|
{
|
|
|
int ret;
|