]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/blackfin/kernel/cplbinfo.c
procfs: new helper - PDE_DATA(inode)
[mirror_ubuntu-bionic-kernel.git] / arch / blackfin / kernel / cplbinfo.c
index e1d0b24c60708378b894d3a7cabd9a6f2ebef65e..404045dcc5e4bc321c30ddf0eecc1a259e5312ce 100644 (file)
@@ -116,14 +116,12 @@ static const struct seq_operations cplbinfo_sops = {
 
 static int cplbinfo_open(struct inode *inode, struct file *file)
 {
-       struct proc_dir_entry *pde = PDE(file_inode(file));
        char cplb_type;
-       unsigned int cpu;
+       unsigned int cpu = (unsigned long)PDE_DATA(file_inode(file));
        int ret;
        struct seq_file *m;
        struct cplbinfo_data *cdata;
 
-       cpu = (unsigned int)pde->data;
        cplb_type = cpu & CPLBINFO_DCPLB_FLAG ? 'D' : 'I';
        cpu &= ~CPLBINFO_DCPLB_FLAG;