patch-2.1.27 linux/net/rose/rose_dev.c

Next file: linux/net/rose/rose_in.c
Previous file: linux/net/rose/af_rose.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.26/linux/net/rose/rose_dev.c linux/net/rose/rose_dev.c
@@ -19,6 +19,8 @@
 
 #include <linux/config.h>
 #if defined(CONFIG_ROSE) || defined(CONFIG_ROSE_MODULE)
+#define __NO_VERSION__
+#include <linux/module.h>
 #include <linux/proc_fs.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -143,6 +145,7 @@
 
 static int rose_open(struct device *dev)
 {
+	MOD_INC_USE_COUNT;
 	dev->tbusy = 0;
 	dev->start = 1;
 
@@ -153,6 +156,7 @@
 
 static int rose_close(struct device *dev)
 {
+	MOD_DEC_USE_COUNT;
 	dev->tbusy = 1;
 	dev->start = 0;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov