mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
[PATCH] irq-flags: M68K: Use the new IRQF_ constants
Use the new IRQF_ constants and remove the SA_INTERRUPT define Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f6f238875c
commit
b0b9fdc123
7 changed files with 9 additions and 10 deletions
|
|
@ -88,8 +88,8 @@ static __inline__ void fd_outb(unsigned char value, int port)
|
|||
static int fd_request_irq(void)
|
||||
{
|
||||
if(MACH_IS_Q40)
|
||||
return request_irq(FLOPPY_IRQ, floppy_hardint,SA_INTERRUPT,
|
||||
"floppy", floppy_hardint);
|
||||
return request_irq(FLOPPY_IRQ, floppy_hardint,
|
||||
IRQF_DISABLED, "floppy", floppy_hardint);
|
||||
else if(MACH_IS_SUN3X)
|
||||
return sun3xflop_request_irq();
|
||||
return -ENXIO;
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ struct pt_regs;
|
|||
|
||||
/*
|
||||
* various flags for request_irq() - the Amiga now uses the standard
|
||||
* mechanism like all other architectures - SA_INTERRUPT and SA_SHIRQ
|
||||
* are your friends.
|
||||
* mechanism like all other architectures - IRQF_DISABLED and
|
||||
* IRQF_SHARED are your friends.
|
||||
*/
|
||||
#ifndef MACH_AMIGA_ONLY
|
||||
#define IRQ_FLG_LOCK (0x0001) /* handler is not replaceable */
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ typedef unsigned long sigset_t;
|
|||
* SA_FLAGS values:
|
||||
*
|
||||
* SA_ONSTACK indicates that a registered stack_t will be used.
|
||||
* SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
|
||||
* SA_RESTART flag to get restarting signals (which were the default long ago)
|
||||
* SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
|
||||
* SA_RESETHAND clears the handler when the signal is delivered.
|
||||
|
|
@ -94,7 +93,6 @@ typedef unsigned long sigset_t;
|
|||
|
||||
#define SA_NOMASK SA_NODEFER
|
||||
#define SA_ONESHOT SA_RESETHAND
|
||||
#define SA_INTERRUPT 0x20000000 /* dummy -- ignored */
|
||||
|
||||
/*
|
||||
* sigaltstack controls
|
||||
|
|
|
|||
|
|
@ -208,7 +208,8 @@ static int sun3xflop_request_irq(void)
|
|||
|
||||
if(!once) {
|
||||
once = 1;
|
||||
error = request_irq(FLOPPY_IRQ, sun3xflop_hardint, SA_INTERRUPT, "floppy", NULL);
|
||||
error = request_irq(FLOPPY_IRQ, sun3xflop_hardint,
|
||||
IRQF_DISABLED, "floppy", NULL);
|
||||
return ((error == 0) ? 0 : -1);
|
||||
} else return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue