patch-2.1.31 linux/drivers/char/fbmem.c
Next file: linux/drivers/char/ftape/kernel-interface.c
Previous file: linux/drivers/char/esp.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Wed Apr 2 17:43:21 1997
- Orig file:
v2.1.30/linux/drivers/char/fbmem.c
- Orig date:
Sun Jan 26 02:07:16 1997
diff -u --recursive --new-file v2.1.30/linux/drivers/char/fbmem.c linux/drivers/char/fbmem.c
@@ -247,15 +247,16 @@
return 0;
}
-static void
+static int
fb_release(struct inode *inode, struct file *file)
{
int fbidx=GET_FB_IDX(inode->i_rdev);
int vidx=GET_FB_VAR_IDX(inode->i_rdev);
if (! vidx)
- return;
+ return 0;
if (! (--fb_open_count[fbidx]))
fb_curr_open[fbidx]=0;
+ return 0;
}
static struct file_operations fb_fops = {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov