From: Hans de Goede Date: Fri, 14 Nov 2014 12:26:55 +0000 (+0100) Subject: simplefb: Change simplefb_init from module_init to fs_initcall X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0c5b240c7e0a7af56afd24db6570fa84d67728c2;p=linux-beck.git simplefb: Change simplefb_init from module_init to fs_initcall 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 Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/simplefb.c b/drivers/video/fbdev/simplefb.c index 74c5edd38518..8be9754c9fe9 100644 --- a/drivers/video/fbdev/simplefb.c +++ b/drivers/video/fbdev/simplefb.c @@ -413,7 +413,7 @@ static int __init simplefb_init(void) return 0; } -module_init(simplefb_init); +fs_initcall(simplefb_init); MODULE_AUTHOR("Stephen Warren "); MODULE_DESCRIPTION("Simple framebuffer driver");