X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=arch%2Fblackfin%2Fkernel%2Fcplbinfo.c;h=404045dcc5e4bc321c30ddf0eecc1a259e5312ce;hb=d9dda78bad879595d8c4220a067fc029d6484a16;hp=e1d0b24c60708378b894d3a7cabd9a6f2ebef65e;hpb=8510e30b46cd5467b2f930bef68a276dbc2c7d7c;p=mirror_ubuntu-bionic-kernel.git diff --git a/arch/blackfin/kernel/cplbinfo.c b/arch/blackfin/kernel/cplbinfo.c index e1d0b24c6070..404045dcc5e4 100644 --- a/arch/blackfin/kernel/cplbinfo.c +++ b/arch/blackfin/kernel/cplbinfo.c @@ -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;