diff options
Diffstat (limited to 'drivers/video/epson1355fb.c')
-rw-r--r-- | drivers/video/epson1355fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |