new helper: file_inode(file)
[linux-2.6-block.git] / drivers / sbus / char / display7seg.c
index e85c803b30cdfd0362940a281f054d4d1b9644d6..fc1339cf91ac65d135ef5bf3c14e242462e1453b 100644 (file)
@@ -107,7 +107,7 @@ static long d7s_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        int error = 0;
        u8 ireg = 0;
 
-       if (D7S_MINOR != iminor(file->f_path.dentry->d_inode))
+       if (D7S_MINOR != iminor(file_inode(file)))
                return -ENODEV;
 
        mutex_lock(&d7s_mutex);