new helper: file_inode(file)
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / parisc / led.c
index f2f501e5b6a0cb644b636937506734e436c76283..d4d800c54d862089a0c52ed2e9eb63c69785b1ba 100644 (file)
@@ -179,7 +179,7 @@ static int led_proc_open(struct inode *inode, struct file *file)
 static ssize_t led_proc_write(struct file *file, const char *buf,
        size_t count, loff_t *pos)
 {
-       void *data = PDE(file->f_path.dentry->d_inode)->data;
+       void *data = PDE(file_inode(file))->data;
        char *cur, lbuf[32];
        int d;