diff options
Diffstat (limited to 'drivers/char/vr41xx_giu.c')
-rw-r--r-- | drivers/char/vr41xx_giu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/vr41xx_giu.c b/drivers/char/vr41xx_giu.c index 8116a47b80f4..a744dad9cf45 100644 --- a/drivers/char/vr41xx_giu.c +++ b/drivers/char/vr41xx_giu.c | |||
@@ -221,7 +221,7 @@ static struct hw_interrupt_type giuint_high_irq_type = { | |||
221 | .end = end_giuint_high_irq, | 221 | .end = end_giuint_high_irq, |
222 | }; | 222 | }; |
223 | 223 | ||
224 | static int giu_get_irq(unsigned int irq, struct pt_regs *regs) | 224 | static int giu_get_irq(unsigned int irq) |
225 | { | 225 | { |
226 | uint16_t pendl, pendh, maskl, maskh; | 226 | uint16_t pendl, pendh, maskl, maskh; |
227 | int i; | 227 | int i; |
@@ -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 | ||