From: Luis R. Rodriguez Date: Tue, 14 May 2013 06:35:23 +0000 (-0700) Subject: backports: make compat module use subsys_initcall() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0935deabd1c7f95ab0ed07dd40291022c7822913;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Johannes Berg --- diff --git a/backport/compat/main.c b/backport/compat/main.c index 5edc15521565..da6405746d0a 100644 --- a/backport/compat/main.c +++ b/backport/compat/main.c @@ -1,4 +1,5 @@ #include +#include #include #include #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) {