diff options
Diffstat (limited to 'drivers/s390/char/fs3270.c')
-rw-r--r-- | drivers/s390/char/fs3270.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c index 911704571b9c..5acdc5f7dae8 100644 --- a/drivers/s390/char/fs3270.c +++ b/drivers/s390/char/fs3270.c | |||
@@ -433,9 +433,9 @@ fs3270_open(struct inode *inode, struct file *filp) | |||
433 | struct idal_buffer *ib; | 433 | struct idal_buffer *ib; |
434 | int minor, rc = 0; | 434 | int minor, rc = 0; |
435 | 435 | ||
436 | if (imajor(filp->f_path.dentry->d_inode) != IBM_FS3270_MAJOR) | 436 | if (imajor(file_inode(filp)) != IBM_FS3270_MAJOR) |
437 | return -ENODEV; | 437 | return -ENODEV; |
438 | minor = iminor(filp->f_path.dentry->d_inode); | 438 | minor = iminor(file_inode(filp)); |
439 | /* Check for minor 0 multiplexer. */ | 439 | /* Check for minor 0 multiplexer. */ |
440 | if (minor == 0) { | 440 | if (minor == 0) { |
441 | struct tty_struct *tty = get_current_tty(); | 441 | struct tty_struct *tty = get_current_tty(); |