aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/vfc_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sbus/char/vfc_dev.c')
-rw-r--r--drivers/sbus/char/vfc_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sbus/char/vfc_dev.c b/drivers/sbus/char/vfc_dev.c
index 55b2b31bd7ab..2722af5d3404 100644
--- a/drivers/sbus/char/vfc_dev.c
+++ b/drivers/sbus/char/vfc_dev.c
@@ -610,7 +610,7 @@ static int vfc_mmap(struct file *file, struct vm_area_struct *vma)
610 unsigned int map_size, ret, map_offset; 610 unsigned int map_size, ret, map_offset;
611 struct vfc_dev *dev; 611 struct vfc_dev *dev;
612 612
613 dev = vfc_get_dev_ptr(iminor(file->f_dentry->d_inode)); 613 dev = vfc_get_dev_ptr(iminor(file->f_path.dentry->d_inode));
614 if(dev == NULL) 614 if(dev == NULL)
615 return -ENODEV; 615 return -ENODEV;
616 616