From 4dda744c2a26d7ee63ceaf834bfe19ab038e4064 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 14 Dec 2015 18:33:19 -0800 Subject: [PATCH] greybus: Camera: remove f_dentry usage On newer kernels f_dentry is gone, so use f_path.dentry instead. Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c index 38b209c93eab..b7d9384e9471 100644 --- a/drivers/staging/greybus/camera.c +++ b/drivers/staging/greybus/camera.c @@ -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; } -- 2.20.1