From: Josef Sipek Signed-off-by: Josef Sipek Signed-off-by: Andrew Morton --- arch/sh/oprofile/op_model_sh7750.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/sh/oprofile/op_model_sh7750.c~struct-path-convert-sh arch/sh/oprofile/op_model_sh7750.c --- a/arch/sh/oprofile/op_model_sh7750.c~struct-path-convert-sh +++ a/arch/sh/oprofile/op_model_sh7750.c @@ -142,7 +142,7 @@ static u64 sh7750_read_counter(int count */ static inline int to_counter(struct file *file) { - const unsigned char *name = file->f_dentry->d_parent->d_name.name; + const unsigned char *name = file->f_path.dentry->d_parent->d_name.name; return (int)simple_strtol(name, NULL, 10); } _