# HG changeset patch # User lgb # Date 984360948 0 # Node ID 9b1462feadcb1f6f6cf005b172496a44daf4cf2a # Parent 92776006958fa4f6dfe9e37ab9dd1e10b2821faa Module usage count not to allow remove module when used diff -r 92776006958f -r 9b1462feadcb drivers/mga_vid.c --- 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); }