Commit 100c9a0b authored by David S. Miller's avatar David S. Miller

[CHAR SPARC]: Update for irqreturn_t.

parent 58ebf8d8
...@@ -265,7 +265,7 @@ for(i=0;i<TYPE_1_IRQS;i++) ...@@ -265,7 +265,7 @@ for(i=0;i<TYPE_1_IRQS;i++)
return 0; return 0;
} }
static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs); static irqreturn_t aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs);
/* Main probing routine, also sets irq. */ /* Main probing routine, also sets irq. */
static int aurora_probe(void) static int aurora_probe(void)
...@@ -701,7 +701,7 @@ static void aurora_check_modem(struct Aurora_board const * bp, int chip) ...@@ -701,7 +701,7 @@ static void aurora_check_modem(struct Aurora_board const * bp, int chip)
} }
/* The main interrupt processing routine */ /* The main interrupt processing routine */
static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs) static irqreturn_t aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
{ {
unsigned char status; unsigned char status;
unsigned char ack,chip/*,chip_id*/; unsigned char ack,chip/*,chip_id*/;
...@@ -719,7 +719,7 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs) ...@@ -719,7 +719,7 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
/* old bp = IRQ_to_board[irq&0x0f];*/ /* old bp = IRQ_to_board[irq&0x0f];*/
if (!bp || !(bp->flags & AURORA_BOARD_ACTIVE)) if (!bp || !(bp->flags & AURORA_BOARD_ACTIVE))
return; return IRQ_NONE;
/* The while() below takes care of this. /* The while() below takes care of this.
status = sbus_readb(&bp->r[0]->r[CD180_SRSR]); status = sbus_readb(&bp->r[0]->r[CD180_SRSR]);
...@@ -727,7 +727,7 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs) ...@@ -727,7 +727,7 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
printk("mumu: %02x\n", status); printk("mumu: %02x\n", status);
#endif #endif
if (!(status&SRSR_ANYINT)) if (!(status&SRSR_ANYINT))
return; * Nobody has anything to say, so exit * return IRQ_NONE; * Nobody has anything to say, so exit *
*/ */
while ((loop++ < 48) && while ((loop++ < 48) &&
(status = sbus_readb(&bp->r[0]->r[CD180_SRSR]) & SRSR_ANYINT)){ (status = sbus_readb(&bp->r[0]->r[CD180_SRSR]) & SRSR_ANYINT)){
...@@ -875,6 +875,8 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs) ...@@ -875,6 +875,8 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
} }
} }
#endif #endif
return IRQ_HANDLED;
} }
#ifdef AURORA_INT_DEBUG #ifdef AURORA_INT_DEBUG
......
...@@ -331,7 +331,7 @@ EXPORT_SYMBOL(bbc_i2c_readb); ...@@ -331,7 +331,7 @@ EXPORT_SYMBOL(bbc_i2c_readb);
EXPORT_SYMBOL(bbc_i2c_write_buf); EXPORT_SYMBOL(bbc_i2c_write_buf);
EXPORT_SYMBOL(bbc_i2c_read_buf); EXPORT_SYMBOL(bbc_i2c_read_buf);
static void bbc_i2c_interrupt(int irq, void *dev_id, struct pt_regs *regs) static irqreturn_t bbc_i2c_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{ {
struct bbc_i2c_bus *bp = dev_id; struct bbc_i2c_bus *bp = dev_id;
...@@ -341,6 +341,8 @@ static void bbc_i2c_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -341,6 +341,8 @@ static void bbc_i2c_interrupt(int irq, void *dev_id, struct pt_regs *regs)
if (bp->waiting && if (bp->waiting &&
!(readb(bp->i2c_control_regs + 0x0) & I2C_PCF_PIN)) !(readb(bp->i2c_control_regs + 0x0) & I2C_PCF_PIN))
wake_up(&bp->wq); wake_up(&bp->wq);
return IRQ_HANDLED;
} }
static void __init reset_one_i2c(struct bbc_i2c_bus *bp) static void __init reset_one_i2c(struct bbc_i2c_bus *bp)
......
...@@ -201,7 +201,7 @@ MODULE_SUPPORTED_DEVICE ...@@ -201,7 +201,7 @@ MODULE_SUPPORTED_DEVICE
#ifdef WD_DEBUG #ifdef WD_DEBUG
static void wd_dumpregs(void); static void wd_dumpregs(void);
#endif #endif
static void wd_interrupt(int irq, void *dev_id, struct pt_regs *regs); static irqreturn_t wd_interrupt(int irq, void *dev_id, struct pt_regs *regs);
static void wd_toggleintr(struct wd_timer* pTimer, int enable); static void wd_toggleintr(struct wd_timer* pTimer, int enable);
static void wd_pingtimer(struct wd_timer* pTimer); static void wd_pingtimer(struct wd_timer* pTimer);
static void wd_starttimer(struct wd_timer* pTimer); static void wd_starttimer(struct wd_timer* pTimer);
...@@ -444,7 +444,7 @@ static ssize_t wd_read(struct file * file, char * buffer, ...@@ -444,7 +444,7 @@ static ssize_t wd_read(struct file * file, char * buffer,
#endif /* ifdef WD_DEBUG */ #endif /* ifdef WD_DEBUG */
} }
static void wd_interrupt(int irq, void *dev_id, struct pt_regs *regs) static irqreturn_t wd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{ {
/* Only WD0 will interrupt-- others are NMI and we won't /* Only WD0 will interrupt-- others are NMI and we won't
* see them here.... * see them here....
...@@ -456,7 +456,7 @@ static void wd_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -456,7 +456,7 @@ static void wd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
wd_dev.watchdog[WD0_ID].runstatus |= WD_STAT_SVCD; wd_dev.watchdog[WD0_ID].runstatus |= WD_STAT_SVCD;
} }
spin_unlock_irq(&wd_dev.lock); spin_unlock_irq(&wd_dev.lock);
return; return IRQ_HANDLED;
} }
static struct file_operations wd_fops = { static struct file_operations wd_fops = {
......
...@@ -217,10 +217,11 @@ uctrl_open(struct inode *inode, struct file *file) ...@@ -217,10 +217,11 @@ uctrl_open(struct inode *inode, struct file *file)
return 0; return 0;
} }
void uctrl_interrupt(int irq, void *dev_id, struct pt_regs *regs) static irqreturn_t uctrl_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{ {
struct uctrl_driver *driver = (struct uctrl_driver *)dev_id; struct uctrl_driver *driver = (struct uctrl_driver *)dev_id;
printk("in uctrl_interrupt\n"); printk("in uctrl_interrupt\n");
return IRQ_HANDLED;
} }
static struct file_operations uctrl_fops = { static struct file_operations uctrl_fops = {
......
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