changeset 93:9b1462feadcb

Module usage count not to allow remove module when used
author lgb
date Mon, 12 Mar 2001 01:35:48 +0000
parents 92776006958f
children fbd99740af99
files drivers/mga_vid.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/mga_vid.c	Mon Mar 12 01:09:35 2001 +0000
+++ b/drivers/mga_vid.c	Mon Mar 12 01:35:48 2001 +0000
@@ -849,8 +849,7 @@
 	mga_vid_write_regs();
 	mga_vid_in_use = 0;
 
-	//FIXME put back in!
-	//MOD_DEC_USE_COUNT;
+	MOD_DEC_USE_COUNT;
 	return 0;
 }
 
@@ -870,8 +869,7 @@
 		return(-EBUSY);
 
 	mga_vid_in_use = 1;
-	//FIXME turn me back on!
-	//MOD_INC_USE_COUNT;
+	MOD_INC_USE_COUNT;
 	return(0);
 }