]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/arm/kernel/atags_proc.c
procfs: new helper - PDE_DATA(inode)
[mirror_ubuntu-bionic-kernel.git] / arch / arm / kernel / atags_proc.c
index 8c00f75bf1ab221dccbb4245ef8727e6d33221e0..c7ff8073416fb0fc4619f597d17cc738985c0a0f 100644 (file)
@@ -12,7 +12,7 @@ struct buffer {
 static ssize_t atags_read(struct file *file, char __user *buf,
                          size_t count, loff_t *ppos)
 {
-       struct buffer *b = PDE(file_inode(file))->data;
+       struct buffer *b = PDE_DATA(file_inode(file));
        return simple_read_from_buffer(buf, count, ppos, b->data, b->size);
 }