Commit a07857ce authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k IRQ API updates [13/20]

M68k block drivers: Update to the new irq API (from Roman Zippel and me) [13/20]
parent 33c66012
......@@ -348,7 +348,7 @@ static int acsicmd_dma( const char *cmd, char *buffer, int blocks, int
rwflag, int enable);
static int acsi_reqsense( char *buffer, int targ, int lun);
static void acsi_print_error(const unsigned char *errblk, int struct acsi_info_struct *aip);
static void acsi_interrupt (int irq, void *data, struct pt_regs *fp);
static irqreturn_t acsi_interrupt (int irq, void *data, struct pt_regs *fp);
static void unexpected_acsi_interrupt( void );
static void bad_rw_intr( void );
static void read_intr( void );
......@@ -728,7 +728,7 @@ static void acsi_print_error(const unsigned char *errblk, struct acsi_info_struc
*
*******************************************************************/
static void acsi_interrupt(int irq, void *data, struct pt_regs *fp )
static irqreturn_t acsi_interrupt(int irq, void *data, struct pt_regs *fp )
{ void (*acsi_irq_handler)(void) = do_acsi;
......@@ -738,6 +738,7 @@ static void acsi_interrupt(int irq, void *data, struct pt_regs *fp )
if (!acsi_irq_handler)
acsi_irq_handler = unexpected_acsi_interrupt;
acsi_irq_handler();
return IRQ_HANDLED;
}
......
......@@ -247,7 +247,7 @@ static int slm_getstats( char *buffer, int device );
static ssize_t slm_read( struct file* file, char *buf, size_t count, loff_t
*ppos );
static void start_print( int device );
static void slm_interrupt(int irc, void *data, struct pt_regs *fp);
static irqreturn_t slm_interrupt(int irc, void *data, struct pt_regs *fp);
static void slm_test_ready( unsigned long dummy );
static void set_dma_addr( unsigned long paddr );
static unsigned long get_dma_addr( void );
......@@ -455,7 +455,7 @@ static void start_print( int device )
/* Only called when an error happened or at the end of a page */
static void slm_interrupt(int irc, void *data, struct pt_regs *fp)
static irqreturn_t slm_interrupt(int irc, void *data, struct pt_regs *fp)
{ unsigned long addr;
int stat;
......@@ -476,6 +476,7 @@ static void slm_interrupt(int irc, void *data, struct pt_regs *fp)
wake_up( &print_wait );
stdma_release();
ENABLE_IRQ();
return IRQ_HANDLED;
}
......
......@@ -216,10 +216,11 @@ static int fd_device[4] = { 0, 0, 0, 0 };
/* Milliseconds timer */
static void ms_isr(int irq, void *dummy, struct pt_regs *fp)
static irqreturn_t ms_isr(int irq, void *dummy, struct pt_regs *fp)
{
ms_busy = -1;
wake_up(&ms_wait);
return IRQ_HANDLED;
}
/* all waits are queued up
......@@ -576,7 +577,7 @@ static unsigned long fd_get_drive_id(int drive)
return (id);
}
static void fd_block_done(int irq, void *dummy, struct pt_regs *fp)
static irqreturn_t fd_block_done(int irq, void *dummy, struct pt_regs *fp)
{
if (block_flag)
custom.dsklen = 0x4000;
......@@ -591,6 +592,7 @@ static void fd_block_done(int irq, void *dummy, struct pt_regs *fp)
block_flag = 0;
wake_up (&wait_fd_block);
}
return IRQ_HANDLED;
}
static void raw_read(int drive)
......
......@@ -364,7 +364,7 @@ static void fd_motor_off_timer( unsigned long dummy );
static void check_change( unsigned long dummy );
static __inline__ void set_head_settle_flag( void );
static __inline__ int get_head_settle_flag( void );
static void floppy_irq (int irq, void *dummy, struct pt_regs *fp);
static irqreturn_t floppy_irq (int irq, void *dummy, struct pt_regs *fp);
static void fd_error( void );
static int do_format(int drive, int type, struct atari_format_descr *desc);
static void do_fd_action( int drive );
......@@ -597,7 +597,7 @@ static __inline__ int get_head_settle_flag( void )
static void (*FloppyIRQHandler)( int status ) = NULL;
static void floppy_irq (int irq, void *dummy, struct pt_regs *fp)
static irqreturn_t floppy_irq (int irq, void *dummy, struct pt_regs *fp)
{
unsigned char status;
void (*handler)( int );
......@@ -613,6 +613,7 @@ static void floppy_irq (int irq, void *dummy, struct pt_regs *fp)
else {
DPRINT(("FDC irq, no handler\n"));
}
return IRQ_HANDLED;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment