patch-2.1.56 linux/drivers/char/fbmem.c
Next file: linux/drivers/char/istallion.c
Previous file: linux/drivers/char/busmouse.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Sat Sep 13 11:07:27 1997
- Orig file:
v2.1.55/linux/drivers/char/fbmem.c
- Orig date:
Mon Aug 4 16:25:37 1997
diff -u --recursive --new-file v2.1.55/linux/drivers/char/fbmem.c linux/drivers/char/fbmem.c
@@ -199,10 +199,9 @@
}
}
-static int
-fb_mmap(struct inode *inode, struct file *file, struct vm_area_struct * vma)
+static int fb_mmap(struct file *file, struct vm_area_struct * vma)
{
- struct fb_ops *fb = registered_fb[GET_FB_IDX(inode->i_rdev)];
+ struct fb_ops *fb = registered_fb[GET_FB_IDX(file->f_dentry->d_inode->i_rdev)];
struct fb_fix_screeninfo fix;
if (! fb)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov