diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/arcfb.c | 2 | ||||
-rw-r--r-- | drivers/video/epson1355fb.c | 4 | ||||
-rw-r--r-- | drivers/video/fbmem.c | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/video/arcfb.c b/drivers/video/arcfb.c index ab34b96acc31..30a8369757e7 100644 --- a/drivers/video/arcfb.c +++ b/drivers/video/arcfb.c | |||
@@ -454,7 +454,7 @@ static ssize_t arcfb_write(struct file *file, const char __user *buf, size_t cou | |||
454 | unsigned int xres; | 454 | unsigned int xres; |
455 | 455 | ||
456 | p = *ppos; | 456 | p = *ppos; |
457 | inode = file->f_dentry->d_inode; | 457 | inode = file->f_path.dentry->d_inode; |
458 | fbidx = iminor(inode); | 458 | fbidx = iminor(inode); |
459 | info = registered_fb[fbidx]; | 459 | info = registered_fb[fbidx]; |
460 | 460 | ||
diff --git a/drivers/video/epson1355fb.c b/drivers/video/epson1355fb.c index 737257d278f0..29e07c109887 100644 --- a/drivers/video/epson1355fb.c +++ b/drivers/video/epson1355fb.c | |||
@@ -405,7 +405,7 @@ static inline unsigned long copy_to_user16(void *to, const void *from, | |||
405 | static ssize_t | 405 | static ssize_t |
406 | epson1355fb_read(struct file *file, char *buf, size_t count, loff_t * ppos) | 406 | epson1355fb_read(struct file *file, char *buf, size_t count, loff_t * ppos) |
407 | { | 407 | { |
408 | struct inode *inode = file->f_dentry->d_inode; | 408 | struct inode *inode = file->f_path.dentry->d_inode; |
409 | int fbidx = iminor(inode); | 409 | int fbidx = iminor(inode); |
410 | struct fb_info *info = registered_fb[fbidx]; | 410 | struct fb_info *info = registered_fb[fbidx]; |
411 | unsigned long p = *ppos; | 411 | unsigned long p = *ppos; |
@@ -437,7 +437,7 @@ static ssize_t | |||
437 | epson1355fb_write(struct file *file, const char *buf, | 437 | epson1355fb_write(struct file *file, const char *buf, |
438 | size_t count, loff_t * ppos) | 438 | size_t count, loff_t * ppos) |
439 | { | 439 | { |
440 | struct inode *inode = file->f_dentry->d_inode; | 440 | struct inode *inode = file->f_path.dentry->d_inode; |
441 | int fbidx = iminor(inode); | 441 | int fbidx = iminor(inode); |
442 | struct fb_info *info = registered_fb[fbidx]; | 442 | struct fb_info *info = registered_fb[fbidx]; |
443 | unsigned long p = *ppos; | 443 | unsigned long p = *ppos; |
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index e973a87fbb01..00a216879785 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -572,7 +572,7 @@ static ssize_t | |||
572 | fb_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | 572 | fb_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) |
573 | { | 573 | { |
574 | unsigned long p = *ppos; | 574 | unsigned long p = *ppos; |
575 | struct inode *inode = file->f_dentry->d_inode; | 575 | struct inode *inode = file->f_path.dentry->d_inode; |
576 | int fbidx = iminor(inode); | 576 | int fbidx = iminor(inode); |
577 | struct fb_info *info = registered_fb[fbidx]; | 577 | struct fb_info *info = registered_fb[fbidx]; |
578 | u32 *buffer, *dst; | 578 | u32 *buffer, *dst; |
@@ -647,7 +647,7 @@ static ssize_t | |||
647 | fb_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) | 647 | fb_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) |
648 | { | 648 | { |
649 | unsigned long p = *ppos; | 649 | unsigned long p = *ppos; |
650 | struct inode *inode = file->f_dentry->d_inode; | 650 | struct inode *inode = file->f_path.dentry->d_inode; |
651 | int fbidx = iminor(inode); | 651 | int fbidx = iminor(inode); |
652 | struct fb_info *info = registered_fb[fbidx]; | 652 | struct fb_info *info = registered_fb[fbidx]; |
653 | u32 *buffer, *src; | 653 | u32 *buffer, *src; |
@@ -1081,7 +1081,7 @@ static int fb_get_fscreeninfo(struct inode *inode, struct file *file, | |||
1081 | static long | 1081 | static long |
1082 | fb_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | 1082 | fb_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) |
1083 | { | 1083 | { |
1084 | struct inode *inode = file->f_dentry->d_inode; | 1084 | struct inode *inode = file->f_path.dentry->d_inode; |
1085 | int fbidx = iminor(inode); | 1085 | int fbidx = iminor(inode); |
1086 | struct fb_info *info = registered_fb[fbidx]; | 1086 | struct fb_info *info = registered_fb[fbidx]; |
1087 | struct fb_ops *fb = info->fbops; | 1087 | struct fb_ops *fb = info->fbops; |
@@ -1121,7 +1121,7 @@ fb_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
1121 | static int | 1121 | static int |
1122 | fb_mmap(struct file *file, struct vm_area_struct * vma) | 1122 | fb_mmap(struct file *file, struct vm_area_struct * vma) |
1123 | { | 1123 | { |
1124 | int fbidx = iminor(file->f_dentry->d_inode); | 1124 | int fbidx = iminor(file->f_path.dentry->d_inode); |
1125 | struct fb_info *info = registered_fb[fbidx]; | 1125 | struct fb_info *info = registered_fb[fbidx]; |
1126 | struct fb_ops *fb = info->fbops; | 1126 | struct fb_ops *fb = info->fbops; |
1127 | unsigned long off; | 1127 | unsigned long off; |