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 2d61db3fc62a..6dc60725de92 100644 --- a/drivers/s390/char/tape_char.c +++ b/drivers/s390/char/tape_char.c | |||
@@ -273,13 +273,13 @@ tapechar_open (struct inode *inode, struct file *filp) | |||
273 | int minor, rc; | 273 | int minor, rc; |
274 | 274 | ||
275 | DBF_EVENT(6, "TCHAR:open: %i:%i\n", | 275 | DBF_EVENT(6, "TCHAR:open: %i:%i\n", |
276 | imajor(filp->f_path.dentry->d_inode), | 276 | imajor(file_inode(filp)), |
277 | iminor(filp->f_path.dentry->d_inode)); | 277 | iminor(file_inode(filp))); |
278 | 278 | ||
279 | if (imajor(filp->f_path.dentry->d_inode) != tapechar_major) | 279 | if (imajor(file_inode(filp)) != tapechar_major) |
280 | return -ENODEV; | 280 | return -ENODEV; |
281 | 281 | ||
282 | minor = iminor(filp->f_path.dentry->d_inode); | 282 | minor = iminor(file_inode(filp)); |
283 | device = tape_find_device(minor / TAPE_MINORS_PER_DEV); | 283 | device = tape_find_device(minor / TAPE_MINORS_PER_DEV); |
284 | if (IS_ERR(device)) { | 284 | if (IS_ERR(device)) { |
285 | DBF_EVENT(3, "TCHAR:open: tape_find_device() failed\n"); | 285 | DBF_EVENT(3, "TCHAR:open: tape_find_device() failed\n"); |