summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-05-13 23:35:23 -0700
committerJohannes Berg <johannes.berg@intel.com>2013-05-14 09:28:44 +0200
commit0935deabd1c7f95ab0ed07dd40291022c7822913 (patch)
tree32491e0b998200c95893d49b56c3b905a6f14a46
parentf4c9d9a279a01a4cd6f670e5518e3e6431a3f818 (diff)
backports: make compat module use subsys_initcall()
This is a no-op for the modular use case of the backports project but by enabling this it allows for developers a way to embed the backports releases onto a target source Linux directory, with obvious pending modifications, by adding our backport_init() onto the target kernel's init/main.c start_kernel(). Enable this theoretical use case. Hackers welcome to go play on this theoretical integration strategy now. Cc: pstew@chromium.org Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--backport/compat/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backport/compat/main.c b/backport/compat/main.c
index 5edc1552..da640574 100644
--- a/backport/compat/main.c
+++ b/backport/compat/main.c
@@ -1,4 +1,5 @@
#include <linux/module.h>
+#include <linux/init.h>
#include <linux/pm_qos.h>
#include <linux/workqueue.h>
#include "compat-2.6.34.h"
@@ -71,7 +72,7 @@ static int __init backport_init(void)
return 0;
}
-module_init(backport_init);
+subsys_initcall(backport_init);
static void __exit backport_exit(void)
{