Merge tag 'regmap-fix-v5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / lib / test_sysctl.c
index 3750323..a5a3d6c 100644 (file)
@@ -128,26 +128,6 @@ static struct ctl_table test_table[] = {
        { }
 };
 
-static struct ctl_table test_sysctl_table[] = {
-       {
-               .procname       = "test_sysctl",
-               .maxlen         = 0,
-               .mode           = 0555,
-               .child          = test_table,
-       },
-       { }
-};
-
-static struct ctl_table test_sysctl_root_table[] = {
-       {
-               .procname       = "debug",
-               .maxlen         = 0,
-               .mode           = 0555,
-               .child          = test_sysctl_table,
-       },
-       { }
-};
-
 static struct ctl_table_header *test_sysctl_header;
 
 static int __init test_sysctl_init(void)
@@ -155,7 +135,7 @@ static int __init test_sysctl_init(void)
        test_data.bitmap_0001 = kzalloc(SYSCTL_TEST_BITMAP_SIZE/8, GFP_KERNEL);
        if (!test_data.bitmap_0001)
                return -ENOMEM;
-       test_sysctl_header = register_sysctl_table(test_sysctl_root_table);
+       test_sysctl_header = register_sysctl("debug/test_sysctl", test_table);
        if (!test_sysctl_header) {
                kfree(test_data.bitmap_0001);
                return -ENOMEM;