diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2009-10-02 15:23:21 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-02 15:42:19 +0200 |
commit | 329bd4119c8a0afea95f9db6d6b402a2f2b40e84 (patch) | |
tree | 896919a7d3ec6b4570664a2c01181d16444fcdcf /include/linux/init.h | |
parent | f436f8bb73138bc74eb1c6527723e00988ad8a8a (diff) | |
download | kernel_samsung_espresso10-329bd4119c8a0afea95f9db6d6b402a2f2b40e84.zip kernel_samsung_espresso10-329bd4119c8a0afea95f9db6d6b402a2f2b40e84.tar.gz kernel_samsung_espresso10-329bd4119c8a0afea95f9db6d6b402a2f2b40e84.tar.bz2 |
initcalls: Add early_initcall() for modules
Complete the early_initcall() API by making it available in modules
too. To be used by the EDAC/MCE code.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andi Kleen <andi@firstfloor.org>
LKML-Reference: <20091002132321.GC28682@aftab>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/init.h')
-rw-r--r-- | include/linux/init.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index 400adbb..ff8bde5 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -271,6 +271,7 @@ void __init parse_early_options(char *cmdline); #else /* MODULE */ /* Don't use these in modules, but some people do... */ +#define early_initcall(fn) module_init(fn) #define core_initcall(fn) module_init(fn) #define postcore_initcall(fn) module_init(fn) #define arch_initcall(fn) module_init(fn) |