aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/vr41xx_giu.c
diff options
context:
space:
mode:
authorJosef Sipek <jsipek@fsl.cs.sunysb.edu>2006-12-08 05:36:55 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:44 -0500
commita7113a966241b700aecc7b8cb326cecb62e3c4b2 (patch)
treeb28920a82e7cad67ea6e55826e161ba0e4cf9782 /drivers/char/vr41xx_giu.c
parent6c648be6f4183775679c1f2cc4d094128f104fb2 (diff)
[PATCH] struct path: convert char-drivers
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/vr41xx_giu.c')
-rw-r--r--drivers/char/vr41xx_giu.c4
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