ChangeSet 1.893.2.10, 2002/12/23 16:02:27-08:00, [EMAIL PROTECTED]
[PATCH] USB scanner: stop managing our module reference count, and let the VFS do it.
diff -Nru a/drivers/usb/scanner.c b/drivers/usb/scanner.c
--- a/drivers/usb/scanner.c Mon Jan 6 11:31:21 2003
+++ b/drivers/usb/scanner.c Mon Jan 6 11:31:21 2003
@@ -401,8 +401,6 @@
int err=0;
- MOD_INC_USE_COUNT;
-
down(&scn_mutex);
scn_minor = USB_SCN_MINOR(inode);
@@ -411,7 +409,6 @@
if (!p_scn_table[scn_minor]) {
up(&scn_mutex);
- MOD_DEC_USE_COUNT;
dbg("open_scanner(%d): Unable to access minor data", scn_minor);
return -ENODEV;
}
@@ -453,9 +450,6 @@
up(&(scn->sem)); /* Wake up any possible contending processes */
- if (err)
- MOD_DEC_USE_COUNT;
-
return err;
}
@@ -486,8 +480,6 @@
up(&scn_mutex);
up(&(scn->sem));
- MOD_DEC_USE_COUNT;
-
return 0;
}
@@ -831,6 +823,7 @@
static struct
file_operations usb_scanner_fops = {
+ owner: THIS_MODULE,
read: read_scanner,
write: write_scanner,
ioctl: ioctl_scanner,
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel