diff options
Diffstat (limited to 'drivers/net/irda/w83977af_ir.c')
-rw-r--r-- | drivers/net/irda/w83977af_ir.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c index 7de1afdeec3d..4212657fa4f9 100644 --- a/drivers/net/irda/w83977af_ir.c +++ b/drivers/net/irda/w83977af_ir.c | |||
@@ -1111,20 +1111,14 @@ static __u8 w83977af_fir_interrupt(struct w83977af_ir *self, int isr) | |||
1111 | * An interrupt from the chip has arrived. Time to do some work | 1111 | * An interrupt from the chip has arrived. Time to do some work |
1112 | * | 1112 | * |
1113 | */ | 1113 | */ |
1114 | static irqreturn_t w83977af_interrupt(int irq, void *dev_id, | 1114 | static irqreturn_t w83977af_interrupt(int irq, void *dev_id) |
1115 | struct pt_regs *regs) | ||
1116 | { | 1115 | { |
1117 | struct net_device *dev = (struct net_device *) dev_id; | 1116 | struct net_device *dev = dev_id; |
1118 | struct w83977af_ir *self; | 1117 | struct w83977af_ir *self; |
1119 | __u8 set, icr, isr; | 1118 | __u8 set, icr, isr; |
1120 | int iobase; | 1119 | int iobase; |
1121 | 1120 | ||
1122 | if (!dev) { | 1121 | self = dev->priv; |
1123 | printk(KERN_WARNING "%s: irq %d for unknown device.\n", | ||
1124 | driver_name, irq); | ||
1125 | return IRQ_NONE; | ||
1126 | } | ||
1127 | self = (struct w83977af_ir *) dev->priv; | ||
1128 | 1122 | ||
1129 | iobase = self->io.fir_base; | 1123 | iobase = self->io.fir_base; |
1130 | 1124 | ||