Skip to content

Commit

Permalink
Completely remove deprecated IRQ flags (SA_*)
Browse files Browse the repository at this point in the history
Only very little files use the deprecated SA_* IRQ flags in latest pull.  This
patch series removes such macros from the tree and transfrom old code to the
new IRQF_* flags.

I've grepped the whole tree to make sure that no more files than the patched
ones use such deprecated macros.  I hope this series won't introduce build
errors.

Signed-off-by: Ahmed S. Darwish <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
a-darwish authored and Linus Torvalds committed Oct 17, 2007
1 parent 38d090b commit b4471cb
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions include/linux/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,6 @@
#define IRQF_NOBALANCING 0x00000800
#define IRQF_IRQPOLL 0x00001000

/*
* Migration helpers. Scheduled for removal in 9/2007
* Do not use for new code !
*/
static inline
unsigned long __deprecated deprecated_irq_flag(unsigned long flag)
{
return flag;
}

#define SA_INTERRUPT deprecated_irq_flag(IRQF_DISABLED)
#define SA_SAMPLE_RANDOM deprecated_irq_flag(IRQF_SAMPLE_RANDOM)
#define SA_SHIRQ deprecated_irq_flag(IRQF_SHARED)
#define SA_PROBEIRQ deprecated_irq_flag(IRQF_PROBE_SHARED)
#define SA_PERCPU deprecated_irq_flag(IRQF_PERCPU)

#define SA_TRIGGER_LOW deprecated_irq_flag(IRQF_TRIGGER_LOW)
#define SA_TRIGGER_HIGH deprecated_irq_flag(IRQF_TRIGGER_HIGH)
#define SA_TRIGGER_FALLING deprecated_irq_flag(IRQF_TRIGGER_FALLING)
#define SA_TRIGGER_RISING deprecated_irq_flag(IRQF_TRIGGER_RISING)
#define SA_TRIGGER_MASK deprecated_irq_flag(IRQF_TRIGGER_MASK)

typedef irqreturn_t (*irq_handler_t)(int, void *);

struct irqaction {
Expand Down

0 comments on commit b4471cb

Please sign in to comment.