diff options
Diffstat (limited to 'drivers/char/vr41xx_giu.c')
-rw-r--r-- | drivers/char/vr41xx_giu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/vr41xx_giu.c b/drivers/char/vr41xx_giu.c index 8e7949305171..a744dad9cf45 100644 --- a/drivers/char/vr41xx_giu.c +++ b/drivers/char/vr41xx_giu.c | |||
@@ -506,7 +506,7 @@ static ssize_t gpio_read(struct file *file, char __user *buf, size_t len, | |||
506 | unsigned int pin; | 506 | unsigned int pin; |
507 | char value = '0'; | 507 | char value = '0'; |
508 | 508 | ||
509 | pin = iminor(file->f_dentry->d_inode); | 509 | pin = iminor(file->f_path.dentry->d_inode); |
510 | if (pin >= giu_nr_pins) | 510 | if (pin >= giu_nr_pins) |
511 | return -EBADF; | 511 | return -EBADF; |
512 | 512 | ||
@@ -530,7 +530,7 @@ static ssize_t gpio_write(struct file *file, const char __user *data, | |||
530 | char c; | 530 | char c; |
531 | int retval = 0; | 531 | int retval = 0; |
532 | 532 | ||
533 | pin = iminor(file->f_dentry->d_inode); | 533 | pin = iminor(file->f_path.dentry->d_inode); |
534 | if (pin >= giu_nr_pins) | 534 | if (pin >= giu_nr_pins) |
535 | return -EBADF; | 535 | return -EBADF; |
536 | 536 | ||