new helper: file_inode(file)
[deliverable/linux.git] / drivers / isdn / hysdn / hysdn_proclog.c
index 88e4f0ee073cf8efc7c95cbae29e6db405d319a8..9a3ce93665c5e09b56ad9f633b036f264e8681f5 100644 (file)
@@ -173,7 +173,7 @@ hysdn_log_read(struct file *file, char __user *buf, size_t count, loff_t *off)
 {
        struct log_data *inf;
        int len;
-       struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode);
+       struct proc_dir_entry *pde = PDE(file_inode(file));
        struct procdata *pd = NULL;
        hysdn_card *card;
 
@@ -319,7 +319,7 @@ static unsigned int
 hysdn_log_poll(struct file *file, poll_table *wait)
 {
        unsigned int mask = 0;
-       struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode);
+       struct proc_dir_entry *pde = PDE(file_inode(file));
        hysdn_card *card;
        struct procdata *pd = NULL;
 
This page took 0.025534 seconds and 5 git commands to generate.