patch-1.3.70 linux/drivers/net/3c509.c
Next file: linux/drivers/net/3c59x.c
Previous file: linux/drivers/net/3c507.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Fri Mar 1 07:50:42 1996
- Orig file:
v1.3.69/linux/drivers/net/3c509.c
- Orig date:
Wed Feb 28 11:50:04 1996
diff -u --recursive --new-file v1.3.69/linux/drivers/net/3c509.c linux/drivers/net/3c509.c
@@ -102,7 +102,7 @@
static ushort read_eeprom(short ioaddr, int index);
static int el3_open(struct device *dev);
static int el3_start_xmit(struct sk_buff *skb, struct device *dev);
-static void el3_interrupt(int irq, struct pt_regs *regs);
+static void el3_interrupt(int irq, void *dev_id, struct pt_regs *regs);
static void update_stats(int addr, struct device *dev);
static struct enet_statistics *el3_get_stats(struct device *dev);
static int el3_rx(struct device *dev);
@@ -312,7 +312,7 @@
outw(RxReset, ioaddr + EL3_CMD);
outw(SetReadZero | 0x00, ioaddr + EL3_CMD);
- if (request_irq(dev->irq, &el3_interrupt, 0, "3c509")) {
+ if (request_irq(dev->irq, &el3_interrupt, 0, "3c509", NULL)) {
return -EAGAIN;
}
@@ -464,7 +464,7 @@
/* The EL3 interrupt handler. */
static void
-el3_interrupt(int irq, struct pt_regs *regs)
+el3_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
struct device *dev = (struct device *)(irq2dev_map[irq]);
int ioaddr, status;
@@ -680,7 +680,7 @@
outw(inw(ioaddr + WN4_MEDIA) & ~MEDIA_TP, ioaddr + WN4_MEDIA);
}
- free_irq(dev->irq);
+ free_irq(dev->irq, NULL);
/* Switching back to window 0 disables the IRQ. */
EL3WINDOW(0);
/* But we explicitly zero the IRQ line select anyway. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this