patch-2.4.14 linux/drivers/ide/ataraid.c

Next file: linux/drivers/ide/buddha.c
Previous file: linux/drivers/char/vt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/drivers/ide/ataraid.c linux/drivers/ide/ataraid.c
@@ -51,6 +51,7 @@
 static int ataraid_readahead[256];
 
 static struct block_device_operations ataraid_fops = {
+	owner:			THIS_MODULE,
 	open:                   ataraid_open,
 	release:                ataraid_release,
 	ioctl:                  ataraid_ioctl,
@@ -208,11 +209,9 @@
 int ataraid_get_device(struct raid_device_operations *fops)
 {
 	int bit;
-	MOD_INC_USE_COUNT;
 	down(&ataraid_sem);
 	if (ataraiduse==~0U) {
 		up(&ataraid_sem);
-		MOD_DEC_USE_COUNT;
 		return -ENODEV;
 	}
 	bit=ffz(ataraiduse); 
@@ -232,7 +231,6 @@
 	ataraiduse &= ~(1<<device);
 	ataraid_ops[device] = NULL;
 	up(&ataraid_sem);
-	MOD_DEC_USE_COUNT;
 }
 
 void ataraid_register_disk(int device,long size)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)