patch-2.4.14 linux/drivers/mtd/nftlcore.c

Next file: linux/drivers/net/8139cp.c
Previous file: linux/drivers/mtd/mtdblock_ro.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/drivers/mtd/nftlcore.c linux/drivers/mtd/nftlcore.c
@@ -984,11 +984,8 @@
 #endif /* !CONFIG_NFTL_RW */
 
 	thisNFTL->usecount++;
-	MOD_INC_USE_COUNT;
-	if (!get_mtd_device(thisNFTL->mtd, -1)) {
-		MOD_DEC_USE_COUNT;
+	if (!get_mtd_device(thisNFTL->mtd, -1))
 		return /* -E'SBUGGEREDOFF */ -ENXIO;
-	}
 
 	return 0;
 }
@@ -1006,7 +1003,6 @@
 	if (thisNFTL->mtd->sync)
 		thisNFTL->mtd->sync(thisNFTL->mtd);
 	thisNFTL->usecount--;
-	MOD_DEC_USE_COUNT;
 
 	put_mtd_device(thisNFTL->mtd);
 
@@ -1024,6 +1020,7 @@
 #else
 static struct block_device_operations nftl_fops = 
 {
+	owner:		THIS_MODULE,
 	open:		nftl_open,
 	release:	nftl_release,
 	ioctl: 		nftl_ioctl

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