new helper: file_inode(file)
[linux-2.6-block.git] / drivers / usb / gadget / printer.c
index 35bcc83d1e0428388a30632c8f9b1c2e7f8212e8..bf7a56b6d48ac2c3ebb3acf8920c70d79900d307 100644 (file)
@@ -688,7 +688,7 @@ static int
 printer_fsync(struct file *fd, loff_t start, loff_t end, int datasync)
 {
        struct printer_dev      *dev = fd->private_data;
-       struct inode *inode = fd->f_path.dentry->d_inode;
+       struct inode *inode = file_inode(fd);
        unsigned long           flags;
        int                     tx_list_empty;