From: James Simmons <jsimmons@infradead.org>
This patch fixes fb_console_init from being called twice. I still need to
fix set_con2fb but this helps but this is still important to get in.
{
if (!num_registered_fb)
return -ENODEV;
+
take_over_console(&fb_con, first_fb_vc, last_fb_vc, fbcon_is_default);
acquire_console_sem();
if (!fbcon_event_notifier_registered) {
fbcon_event_notifier_registered = 1;
}
release_console_sem();
-
return 0;
}
+#ifdef MODULE
+
void __exit fb_console_exit(void)
{
acquire_console_sem();
module_init(fb_console_init);
module_exit(fb_console_exit);
+#endif
+
/*
* Visible symbols for modules
*/