patch-2.4.0-test2 linux/drivers/net/wan/cosa.c
Next file: linux/drivers/net/wan/cycx_main.c
Previous file: linux/drivers/net/wan/comx.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Wed Jun 21 22:31:02 2000
- Orig file:
v2.4.0-test1/linux/drivers/net/wan/cosa.c
- Orig date:
Thu May 11 15:30:07 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/wan/cosa.c linux/drivers/net/wan/cosa.c
@@ -318,6 +318,7 @@
#endif
static struct file_operations cosa_fops = {
+ owner: THIS_MODULE,
llseek: cosa_lseek,
read: cosa_read,
write: cosa_write,
@@ -397,7 +398,7 @@
devfs_handle = devfs_mk_dir (NULL, "cosa", 4, NULL);
devfs_register_series (devfs_handle, "%u", nr_cards, DEVFS_FL_DEFAULT,
cosa_major, 0,
- S_IFCHR | S_IRUSR | S_IWUSR, 0, 0,
+ S_IFCHR | S_IRUSR | S_IWUSR,
&cosa_fops, NULL);
if (!nr_cards) {
printk(KERN_WARNING "cosa: no devices found.\n");
@@ -969,9 +970,6 @@
chan->tx_done = chrdev_tx_done;
chan->setup_rx = chrdev_setup_rx;
chan->rx_done = chrdev_rx_done;
-#ifdef MODULE
- MOD_INC_USE_COUNT;
-#endif
spin_unlock_irqrestore(&cosa->lock, flags);
return 0;
}
@@ -985,9 +983,6 @@
spin_lock_irqsave(&cosa->lock, flags);
cosa->usage--;
channel->usage--;
-#ifdef MODULE
- MOD_DEC_USE_COUNT;
-#endif
spin_unlock_irqrestore(&cosa->lock, flags);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)