diff options
Diffstat (limited to 'drivers/sbus/char/bpp.c')
-rw-r--r-- | drivers/sbus/char/bpp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/bpp.c b/drivers/sbus/char/bpp.c index 385f4f768311..ac7d1258efee 100644 --- a/drivers/sbus/char/bpp.c +++ b/drivers/sbus/char/bpp.c | |||
@@ -621,7 +621,7 @@ static long read_ecp(unsigned minor, char __user *c, unsigned long cnt) | |||
621 | static ssize_t bpp_read(struct file *f, char __user *c, size_t cnt, loff_t * ppos) | 621 | static ssize_t bpp_read(struct file *f, char __user *c, size_t cnt, loff_t * ppos) |
622 | { | 622 | { |
623 | long rc; | 623 | long rc; |
624 | unsigned minor = iminor(f->f_dentry->d_inode); | 624 | unsigned minor = iminor(f->f_path.dentry->d_inode); |
625 | if (minor >= BPP_NO) return -ENODEV; | 625 | if (minor >= BPP_NO) return -ENODEV; |
626 | if (!instances[minor].present) return -ENODEV; | 626 | if (!instances[minor].present) return -ENODEV; |
627 | 627 | ||
@@ -774,7 +774,7 @@ static long write_ecp(unsigned minor, const char __user *c, unsigned long cnt) | |||
774 | static ssize_t bpp_write(struct file *f, const char __user *c, size_t cnt, loff_t * ppos) | 774 | static ssize_t bpp_write(struct file *f, const char __user *c, size_t cnt, loff_t * ppos) |
775 | { | 775 | { |
776 | long errno = 0; | 776 | long errno = 0; |
777 | unsigned minor = iminor(f->f_dentry->d_inode); | 777 | unsigned minor = iminor(f->f_path.dentry->d_inode); |
778 | if (minor >= BPP_NO) return -ENODEV; | 778 | if (minor >= BPP_NO) return -ENODEV; |
779 | if (!instances[minor].present) return -ENODEV; | 779 | if (!instances[minor].present) return -ENODEV; |
780 | 780 | ||