Merge branch 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86
[~shefty/rdma-dev.git] / drivers / platform / x86 / thinkpad_acpi.c
index be93799..9a90756 100644 (file)
@@ -851,7 +851,7 @@ static ssize_t dispatch_proc_write(struct file *file,
                        const char __user *userbuf,
                        size_t count, loff_t *pos)
 {
-       struct ibm_struct *ibm = PDE(file->f_path.dentry->d_inode)->data;
+       struct ibm_struct *ibm = PDE(file_inode(file))->data;
        char *kernbuf;
        int ret;