new helper: file_inode(file)
[linux-2.6-block.git] / drivers / pnp / pnpbios / proc.c
index bc89f392a629e4c97a6f3b215b1469ecc80dd395..63ddb017345631d28ac45b84c764d23a94e5f068 100644 (file)
@@ -244,7 +244,7 @@ static int pnpbios_proc_open(struct inode *inode, struct file *file)
 static ssize_t pnpbios_proc_write(struct file *file, const char __user *buf,
                                  size_t count, loff_t *pos)
 {
-       void *data = PDE(file->f_path.dentry->d_inode)->data;
+       void *data = PDE(file_inode(file))->data;
        struct pnp_bios_node *node;
        int boot = (long)data >> 8;
        u8 nodenum = (long)data;