]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/pnp/isapnp/proc.c
procfs: new helper - PDE_DATA(inode)
[mirror_ubuntu-bionic-kernel.git] / drivers / pnp / isapnp / proc.c
index 65f735ac6b3b6115ad0136a48730c0e5ddaa5979..af4d40affb79c234964063c873f32d765994f98b 100644 (file)
@@ -55,9 +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_inode(file);
-       struct proc_dir_entry *dp = PDE(ino);
-       struct pnp_dev *dev = dp->data;
+       struct pnp_dev *dev = PDE_DATA(file_inode(file));
        int pos = *ppos;
        int cnt, size = 256;