aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/viotape.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/viotape.c')
-rw-r--r--drivers/char/viotape.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/viotape.c b/drivers/char/viotape.c
index 73c78bf75d7f..94d79cb8ce8d 100644
--- a/drivers/char/viotape.c
+++ b/drivers/char/viotape.c
@@ -442,7 +442,7 @@ static ssize_t viotap_write(struct file *file, const char *buf,
442 if (op == NULL) 442 if (op == NULL)
443 return -ENOMEM; 443 return -ENOMEM;
444 444
445 get_dev_info(file->f_dentry->d_inode, &devi); 445 get_dev_info(file->f_path.dentry->d_inode, &devi);
446 446
447 /* 447 /*
448 * We need to make sure we can send a request. We use 448 * We need to make sure we can send a request. We use
@@ -532,7 +532,7 @@ static ssize_t viotap_read(struct file *file, char *buf, size_t count,
532 if (op == NULL) 532 if (op == NULL)
533 return -ENOMEM; 533 return -ENOMEM;
534 534
535 get_dev_info(file->f_dentry->d_inode, &devi); 535 get_dev_info(file->f_path.dentry->d_inode, &devi);
536 536
537 /* 537 /*
538 * We need to make sure we can send a request. We use 538 * We need to make sure we can send a request. We use
@@ -612,7 +612,7 @@ static int viotap_ioctl(struct inode *inode, struct file *file,
612 if (op == NULL) 612 if (op == NULL)
613 return -ENOMEM; 613 return -ENOMEM;
614 614
615 get_dev_info(file->f_dentry->d_inode, &devi); 615 get_dev_info(file->f_path.dentry->d_inode, &devi);
616 616
617 down(&reqSem); 617 down(&reqSem);
618 618
@@ -777,7 +777,7 @@ static int viotap_open(struct inode *inode, struct file *file)
777 if (op == NULL) 777 if (op == NULL)
778 return -ENOMEM; 778 return -ENOMEM;
779 779
780 get_dev_info(file->f_dentry->d_inode, &devi); 780 get_dev_info(file->f_path.dentry->d_inode, &devi);
781 781
782 /* Note: We currently only support one mode! */ 782 /* Note: We currently only support one mode! */
783 if ((devi.devno >= viotape_numdev) || (devi.mode)) { 783 if ((devi.devno >= viotape_numdev) || (devi.mode)) {
@@ -822,7 +822,7 @@ static int viotap_release(struct inode *inode, struct file *file)
822 return -ENOMEM; 822 return -ENOMEM;
823 init_completion(&op->com); 823 init_completion(&op->com);
824 824
825 get_dev_info(file->f_dentry->d_inode, &devi); 825 get_dev_info(file->f_path.dentry->d_inode, &devi);
826 826
827 if (devi.devno >= viotape_numdev) { 827 if (devi.devno >= viotape_numdev) {
828 ret = -ENODEV; 828 ret = -ENODEV;