1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-04 06:01:56 +00:00

Module usage count not to allow remove module when used

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@94 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
lgb 2001-03-12 01:35:48 +00:00
parent 18b80426e8
commit 1aed6f2c01

View File

@ -849,8 +849,7 @@ static int mga_vid_release(struct inode *inode, struct file *file)
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 @@ static int mga_vid_open(struct inode *inode, struct file *file)
return(-EBUSY);
mga_vid_in_use = 1;
//FIXME turn me back on!
//MOD_INC_USE_COUNT;
MOD_INC_USE_COUNT;
return(0);
}