greybus: Camera: remove f_dentry usage
authorGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Dec 2015 02:33:19 +0000 (18:33 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Dec 2015 02:33:19 +0000 (18:33 -0800)
On newer kernels f_dentry is gone, so use f_path.dentry instead.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c

index 38b209c..b7d9384 100644 (file)
@@ -465,7 +465,7 @@ static int gb_camera_debugfs_open(struct inode *inode, struct file *file)
                const struct gb_camera_debugfs_entry *entry =
                        &gb_camera_debugfs_entries[i];
 
-               if (!strcmp(file->f_dentry->d_iname, entry->name)) {
+               if (!strcmp(file->f_path.dentry->d_iname, entry->name)) {
                        file->private_data = (void *)entry;
                        break;
                }