fb_console_init fix.

From: James Simmons
Date: Fri Feb 20 2004 - 16:59:45 EST



Hi!

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.

--- linus-2.6/drivers/video/console/fbcon.c 2004-02-18 20:59:11.000000000 -0800
+++ fbdev-2.6/drivers/video/console/fbcon.c 2004-02-19 18:14:52.000000000 -0800
@@ -2335,6 +2335,7 @@
{
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) {
@@ -2342,10 +2343,11 @@
fbcon_event_notifier_registered = 1;
}
release_console_sem();
-
return 0;
}

+#ifdef MODULE
+
void __exit fb_console_exit(void)
{
acquire_console_sem();
@@ -2360,6 +2362,8 @@
module_init(fb_console_init);
module_exit(fb_console_exit);

+#endif
+
/*
* Visible symbols for modules
*/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/