diff options
Diffstat (limited to 'drivers/s390/char/tape_char.c')
-rw-r--r-- | drivers/s390/char/tape_char.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/s390/char/tape_char.c b/drivers/s390/char/tape_char.c index 97f75237bed..31198c8f271 100644 --- a/drivers/s390/char/tape_char.c +++ b/drivers/s390/char/tape_char.c | |||
@@ -298,13 +298,13 @@ tapechar_open (struct inode *inode, struct file *filp) | |||
298 | int minor, rc; | 298 | int minor, rc; |
299 | 299 | ||
300 | DBF_EVENT(6, "TCHAR:open: %i:%i\n", | 300 | DBF_EVENT(6, "TCHAR:open: %i:%i\n", |
301 | imajor(filp->f_dentry->d_inode), | 301 | imajor(filp->f_path.dentry->d_inode), |
302 | iminor(filp->f_dentry->d_inode)); | 302 | iminor(filp->f_path.dentry->d_inode)); |
303 | 303 | ||
304 | if (imajor(filp->f_dentry->d_inode) != tapechar_major) | 304 | if (imajor(filp->f_path.dentry->d_inode) != tapechar_major) |
305 | return -ENODEV; | 305 | return -ENODEV; |
306 | 306 | ||
307 | minor = iminor(filp->f_dentry->d_inode); | 307 | minor = iminor(filp->f_path.dentry->d_inode); |
308 | device = tape_get_device(minor / TAPE_MINORS_PER_DEV); | 308 | device = tape_get_device(minor / TAPE_MINORS_PER_DEV); |
309 | if (IS_ERR(device)) { | 309 | if (IS_ERR(device)) { |
310 | DBF_EVENT(3, "TCHAR:open: tape_get_device() failed\n"); | 310 | DBF_EVENT(3, "TCHAR:open: tape_get_device() failed\n"); |