diff options
Diffstat (limited to 'drivers/pnp/isapnp/proc.c')
| -rw-r--r-- | drivers/pnp/isapnp/proc.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pnp/isapnp/proc.c b/drivers/pnp/isapnp/proc.c index 315b3112aca..65f735ac6b3 100644 --- a/drivers/pnp/isapnp/proc.c +++ b/drivers/pnp/isapnp/proc.c @@ -30,7 +30,7 @@ static struct proc_dir_entry *isapnp_proc_bus_dir = NULL;  static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence)  {  	loff_t new = -1; -	struct inode *inode = file->f_path.dentry->d_inode; +	struct inode *inode = file_inode(file);  	mutex_lock(&inode->i_mutex);  	switch (whence) { @@ -55,7 +55,7 @@ static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence)  static ssize_t isapnp_proc_bus_read(struct file *file, char __user * buf,  				    size_t nbytes, loff_t * ppos)  { -	struct inode *ino = file->f_path.dentry->d_inode; +	struct inode *ino = file_inode(file);  	struct proc_dir_entry *dp = PDE(ino);  	struct pnp_dev *dev = dp->data;  	int pos = *ppos;  |