patch-2.4.14 linux/drivers/block/z2ram.c

Next file: linux/drivers/cdrom/aztcd.c
Previous file: linux/drivers/block/xd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/drivers/block/z2ram.c linux/drivers/block/z2ram.c
@@ -168,8 +168,6 @@
 	sizeof( z2ram_map[0] );
     int rc = -ENOMEM;
 
-    MOD_INC_USE_COUNT;
-
     device = DEVICE_NR( inode->i_rdev );
 
     if ( current_device != -1 && current_device != device )
@@ -319,7 +317,6 @@
 err_out_kfree:
     kfree( z2ram_map );
 err_out:
-    MOD_DEC_USE_COUNT;
     return rc;
 }
 
@@ -333,13 +330,12 @@
      * FIXME: unmap memory
      */
 
-    MOD_DEC_USE_COUNT;
-
     return 0;
 }
 
 static struct block_device_operations z2_fops =
 {
+	owner:		THIS_MODULE,
 	open:		z2_open,
 	release:	z2_release,
 };

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