[PATCH] Amiga PCMCIA NE2000 Ethernet dev->irq init
authorKars de Jong <jongk@linux-m68k.org>
Sat, 9 Dec 2006 09:51:03 +0000 (10:51 +0100)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 9 Dec 2006 17:41:18 +0000 (09:41 -0800)
Amiga PCMCIA NE2000 Ethernet: Add missing initialization of dev->irq

Signed-off-by: Kars de Jong <jongk@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/net/apne.c

index d4e4081690737bb945d51c6bcc03e9f6097a8596..954191119d35ceef89331927950e08465cf2b42a 100644 (file)
@@ -311,9 +311,10 @@ static int __init apne_probe1(struct net_device *dev, int ioaddr)
 #endif
 
     dev->base_addr = ioaddr;
+    dev->irq = IRQ_AMIGA_PORTS;
 
     /* Install the Interrupt handler */
-    i = request_irq(IRQ_AMIGA_PORTS, apne_interrupt, IRQF_SHARED, DRV_NAME, dev);
+    i = request_irq(dev->irq, apne_interrupt, IRQF_SHARED, DRV_NAME, dev);
     if (i) return i;
 
     for(i = 0; i < ETHER_ADDR_LEN; i++) {