summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/test_sort.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/test_sort.c b/lib/test_sort.c
index d389c1cc2f6c..4db3911db50a 100644
--- a/lib/test_sort.c
+++ b/lib/test_sort.c
@@ -1,8 +1,11 @@
#include <linux/sort.h>
#include <linux/slab.h>
-#include <linux/module.h>
+#include <linux/init.h>
-/* a simple boot-time regression test */
+/*
+ * A simple boot-time regression test
+ * License: GPL
+ */
#define TEST_LEN 1000
@@ -38,6 +41,4 @@ exit:
kfree(a);
return err;
}
-
-module_init(test_sort_init);
-MODULE_LICENSE("GPL");
+subsys_initcall(test_sort_init);