[PATCH v3 3/4] simplefb: Change simplefb_init from module_init to fs_initcall

Hans de Goede hdegoede at redhat.com
Thu Nov 13 05:34:04 PST 2014

One of the reasons for having the simplefb nodes in /chosen, and doing
explicit enumeration of the nodes there, is too allow enumerating them sooner,
so that we get a console earlier on.

Doing this earlier then fs_initcall is not useful, since the fb only turns into
a console when fbcon intializes, which is a fs_initcall too.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
Acked-by: Grant Likely <grant.likely at linaro.org>
 drivers/video/fbdev/simplefb.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/simplefb.c b/drivers/video/fbdev/simplefb.c
index 223f230..1028a0d 100644
--- a/drivers/video/fbdev/simplefb.c
+++ b/drivers/video/fbdev/simplefb.c
@@ -409,7 +409,11 @@ static void __exit simplefb_exit(void)
+ * While this can be a module, if builtin it's most likely the console
+ * So let's leave module_exit but move module_init to an earlier place
+ */
 MODULE_AUTHOR("Stephen Warren <swarren at wwwdotorg.org>");

More information about the linux-arm-kernel mailing list