diff options
Diffstat (limited to 'drivers/media/rc/lirc_dev.c')
-rw-r--r-- | drivers/media/rc/lirc_dev.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c index ca12d3289bfe..35002367485c 100644 --- a/drivers/media/rc/lirc_dev.c +++ b/drivers/media/rc/lirc_dev.c | |||
@@ -531,7 +531,7 @@ EXPORT_SYMBOL(lirc_dev_fop_close); | |||
531 | 531 | ||
532 | unsigned int lirc_dev_fop_poll(struct file *file, poll_table *wait) | 532 | unsigned int lirc_dev_fop_poll(struct file *file, poll_table *wait) |
533 | { | 533 | { |
534 | struct irctl *ir = irctls[iminor(file->f_dentry->d_inode)]; | 534 | struct irctl *ir = irctls[iminor(file_inode(file))]; |
535 | unsigned int ret; | 535 | unsigned int ret; |
536 | 536 | ||
537 | if (!ir) { | 537 | if (!ir) { |
@@ -565,7 +565,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
565 | { | 565 | { |
566 | __u32 mode; | 566 | __u32 mode; |
567 | int result = 0; | 567 | int result = 0; |
568 | struct irctl *ir = irctls[iminor(file->f_dentry->d_inode)]; | 568 | struct irctl *ir = irctls[iminor(file_inode(file))]; |
569 | 569 | ||
570 | if (!ir) { | 570 | if (!ir) { |
571 | printk(KERN_ERR "lirc_dev: %s: no irctl found!\n", __func__); | 571 | printk(KERN_ERR "lirc_dev: %s: no irctl found!\n", __func__); |
@@ -650,7 +650,7 @@ ssize_t lirc_dev_fop_read(struct file *file, | |||
650 | size_t length, | 650 | size_t length, |
651 | loff_t *ppos) | 651 | loff_t *ppos) |
652 | { | 652 | { |
653 | struct irctl *ir = irctls[iminor(file->f_dentry->d_inode)]; | 653 | struct irctl *ir = irctls[iminor(file_inode(file))]; |
654 | unsigned char *buf; | 654 | unsigned char *buf; |
655 | int ret = 0, written = 0; | 655 | int ret = 0, written = 0; |
656 | DECLARE_WAITQUEUE(wait, current); | 656 | DECLARE_WAITQUEUE(wait, current); |
@@ -754,10 +754,10 @@ void *lirc_get_pdata(struct file *file) | |||
754 | { | 754 | { |
755 | void *data = NULL; | 755 | void *data = NULL; |
756 | 756 | ||
757 | if (file && file->f_dentry && file->f_dentry->d_inode && | 757 | if (file && file->f_dentry && file_inode(file) && |
758 | file->f_dentry->d_inode->i_rdev) { | 758 | file_inode(file)->i_rdev) { |
759 | struct irctl *ir; | 759 | struct irctl *ir; |
760 | ir = irctls[iminor(file->f_dentry->d_inode)]; | 760 | ir = irctls[iminor(file_inode(file))]; |
761 | data = ir->d.data; | 761 | data = ir->d.data; |
762 | } | 762 | } |
763 | 763 | ||
@@ -769,7 +769,7 @@ EXPORT_SYMBOL(lirc_get_pdata); | |||
769 | ssize_t lirc_dev_fop_write(struct file *file, const char __user *buffer, | 769 | ssize_t lirc_dev_fop_write(struct file *file, const char __user *buffer, |
770 | size_t length, loff_t *ppos) | 770 | size_t length, loff_t *ppos) |
771 | { | 771 | { |
772 | struct irctl *ir = irctls[iminor(file->f_dentry->d_inode)]; | 772 | struct irctl *ir = irctls[iminor(file_inode(file))]; |
773 | 773 | ||
774 | if (!ir) { | 774 | if (!ir) { |
775 | printk(KERN_ERR "%s: called with invalid irctl\n", __func__); | 775 | printk(KERN_ERR "%s: called with invalid irctl\n", __func__); |