proc: remove ifdef CONFIG_SPARSE_IRQ from stat.c
[safe/jmp/linux-2.6] / kernel / irq / chip.c
index de210f4..6eb3c79 100644 (file)
@@ -125,6 +125,7 @@ int set_irq_type(unsigned int irq, unsigned int type)
                return -ENODEV;
        }
 
+       type &= IRQ_TYPE_SENSE_MASK;
        if (type == IRQ_TYPE_NONE)
                return 0;