hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/sh/mm/pmb.c
....@@ -23,10 +23,10 @@
2323 #include <linux/io.h>
2424 #include <linux/spinlock.h>
2525 #include <linux/vmalloc.h>
26
+#include <linux/pgtable.h>
2627 #include <asm/cacheflush.h>
27
-#include <asm/sizes.h>
28
+#include <linux/sizes.h>
2829 #include <linux/uaccess.h>
29
-#include <asm/pgtable.h>
3030 #include <asm/page.h>
3131 #include <asm/mmu.h>
3232 #include <asm/mmu_context.h>
....@@ -861,13 +861,8 @@
861861
862862 static int __init pmb_debugfs_init(void)
863863 {
864
- struct dentry *dentry;
865
-
866
- dentry = debugfs_create_file("pmb", S_IFREG | S_IRUGO,
867
- arch_debugfs_dir, NULL, &pmb_debugfs_fops);
868
- if (!dentry)
869
- return -ENOMEM;
870
-
864
+ debugfs_create_file("pmb", S_IFREG | S_IRUGO, arch_debugfs_dir, NULL,
865
+ &pmb_debugfs_fops);
871866 return 0;
872867 }
873868 subsys_initcall(pmb_debugfs_init);