patch-2.4.0-test12 linux/drivers/net/plip.c
Next file: linux/drivers/net/ppp_generic.c
Previous file: linux/drivers/net/pcnet32.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Mon Dec 11 12:39:45 2000
- Orig file:
v2.4.0-test11/linux/drivers/net/plip.c
- Orig date:
Mon Jun 19 17:59:40 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/plip.c linux/drivers/net/plip.c
@@ -286,6 +286,7 @@
struct net_local *nl;
struct pardevice *pardev;
+ SET_MODULE_OWNER(dev);
dev->irq = pb->irq;
dev->base_addr = pb->base;
@@ -348,18 +349,18 @@
nl->nibble = PLIP_NIBBLE_WAIT;
/* Initialize task queue structures */
- nl->immediate.next = NULL;
+ INIT_LIST_HEAD(&nl->immediate.list);
nl->immediate.sync = 0;
nl->immediate.routine = (void (*)(void *))plip_bh;
nl->immediate.data = dev;
- nl->deferred.next = NULL;
+ INIT_LIST_HEAD(&nl->deferred.list);
nl->deferred.sync = 0;
nl->deferred.routine = (void (*)(void *))plip_kick_bh;
nl->deferred.data = dev;
if (dev->irq == -1) {
- nl->timer.next = NULL;
+ INIT_LIST_HEAD(&nl->timer.list);
nl->timer.sync = 0;
nl->timer.routine = (void (*)(void *))plip_timer_bh;
nl->timer.data = dev;
@@ -1164,7 +1165,6 @@
netif_start_queue (dev);
- MOD_INC_USE_COUNT;
return 0;
}
@@ -1212,7 +1212,6 @@
/* Reset. */
outb(0x00, PAR_CONTROL(dev));
#endif
- 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)