Commit 4dda744c authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: Camera: remove f_dentry usage

On newer kernels f_dentry is gone, so use f_path.dentry instead.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 3265edaf
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment