[maverick][PATCH] UBUNTU: SAUCE: Load SysLink modules on start-up on OMAP4 devices
Lee Jones
lee.jones at canonical.com
Wed Jul 7 12:04:45 UTC 2010
>> +module_init(omap4_syslink_init);
>
> you aren't in a module here, this code is built-in in the kernel (and will always be).
> This is supposed to be called during platform init, not during do_initcall. Can we call
> this function from the machine init function instead of using this trick?
> (e.g. omap_4430sdp_init() and omap_panda_init())
Okay, I've had a bit of a poke around.
module_init() == device_initcall()
Would device_initcall be a more appropriate naming convention for you?
All of the *_init* calls fall back to the same line of code.
#define __define_initcall(level,fn,id) \
static initcall_t __initcall_##fn##id __used \
__attribute__((__section__(".initcall" level ".init"))) = fn
More information about the kernel-team
mailing list