提交 c943c4b4 编写于 作者: J Josef Sipek 提交者: Linus Torvalds

[PATCH] struct path: convert sh

Signed-off-by: NJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 3d5ff529
...@@ -142,7 +142,7 @@ static u64 sh7750_read_counter(int counter) ...@@ -142,7 +142,7 @@ static u64 sh7750_read_counter(int counter)
*/ */
static inline int to_counter(struct file *file) 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); return (int)simple_strtol(name, NULL, 10);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册