patch-2.4.0-test12 linux/drivers/net/hamachi.c
Next file: linux/drivers/net/hamradio/6pack.h
Previous file: linux/drivers/net/fmv18x.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Mon Dec 11 13:38:29 2000
- Orig file:
v2.4.0-test11/linux/drivers/net/hamachi.c
- Orig date:
Sun Oct 8 10:50:19 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/hamachi.c linux/drivers/net/hamachi.c
@@ -580,6 +580,7 @@
iounmap((char *)ioaddr);
return -ENOMEM;
}
+ SET_MODULE_OWNER(dev);
#ifdef TX_CHECKSUM
printk("check that skbcopy in ip_queue_xmit isn't happening\n");
@@ -787,12 +788,9 @@
u_int32_t rx_int_var, tx_int_var;
u_int16_t fifo_info;
- MOD_INC_USE_COUNT;
-
- if (request_irq(dev->irq, &hamachi_interrupt, SA_SHIRQ, dev->name, dev)) {
- MOD_DEC_USE_COUNT;
- return -EAGAIN;
- }
+ i = request_irq(dev->irq, &hamachi_interrupt, SA_SHIRQ, dev->name, dev);
+ if (i)
+ return i;
if (hamachi_debug > 1)
printk(KERN_DEBUG "%s: hamachi_open() irq %d.\n",
@@ -1753,8 +1751,6 @@
}
writeb(0x00, ioaddr + LEDCtrl);
-
- MOD_DEC_USE_COUNT;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)