diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-09-23 15:04:26 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-09-23 15:04:26 -0400 |
commit | 3f224f4e057ce67713f3e7a8890f2fbe12d047a5 (patch) | |
tree | bcaa45b4a0095c4c502ffac056e26481a7b49442 /arch/sh/mm/pmb.c | |
parent | a234ca0faa65dcd5cc473915bd925130ebb7b74b (diff) |
sh: provide generic arch_debugfs_dir.
While sh previously had its own debugfs root, there now exists a
common arch_debugfs_dir prototype, so we switch everything over to
that. Presumably once more architectures start making use of this
we'll be able to just kill off the stub kdebugfs wrapper.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/pmb.c')
-rw-r--r-- | arch/sh/mm/pmb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index 6379091a1647..233c011c4d22 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c | |||
@@ -866,11 +866,9 @@ static int __init pmb_debugfs_init(void) | |||
866 | struct dentry *dentry; | 866 | struct dentry *dentry; |
867 | 867 | ||
868 | dentry = debugfs_create_file("pmb", S_IFREG | S_IRUGO, | 868 | dentry = debugfs_create_file("pmb", S_IFREG | S_IRUGO, |
869 | sh_debugfs_root, NULL, &pmb_debugfs_fops); | 869 | arch_debugfs_dir, NULL, &pmb_debugfs_fops); |
870 | if (!dentry) | 870 | if (!dentry) |
871 | return -ENOMEM; | 871 | return -ENOMEM; |
872 | if (IS_ERR(dentry)) | ||
873 | return PTR_ERR(dentry); | ||
874 | 872 | ||
875 | return 0; | 873 | return 0; |
876 | } | 874 | } |