a98ed5c
From a8a15723637c6dfbd5042b5c3453d31f5815f044 Mon Sep 17 00:00:00 2001
d07b889
From: "kernel-team@fedoraproject.org" <kernel-team@fedoraproject.org>
d07b889
Date: Thu, 29 Jul 2010 16:46:31 -0700
d07b889
Subject: [PATCH] silence fbcon logo
d07b889
d07b889
Bugzilla: N/A
d07b889
Upstream-status: Fedora mustard
d07b889
---
a98ed5c
 drivers/video/console/fbcon.c | 26 +++++++++++++++++++-------
a98ed5c
 1 file changed, 19 insertions(+), 7 deletions(-)
d07b889
Jesse Keating 7a32965
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
a98ed5c
index afd3301ac40c..2e08ba0ade3e 100644
Jesse Keating 7a32965
--- a/drivers/video/console/fbcon.c
Jesse Keating 7a32965
+++ b/drivers/video/console/fbcon.c
d07b889
@@ -634,13 +634,15 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
Jesse Keating 7a32965
 		kfree(save);
Jesse Keating 7a32965
 	}
Jesse Keating 7a32965
 
Jesse Keating 7a32965
-	if (logo_lines > vc->vc_bottom) {
Jesse Keating 7a32965
-		logo_shown = FBCON_LOGO_CANSHOW;
Jesse Keating 7a32965
-		printk(KERN_INFO
Jesse Keating 7a32965
-		       "fbcon_init: disable boot-logo (boot-logo bigger than screen).\n");
Jesse Keating 7a32965
-	} else if (logo_shown != FBCON_LOGO_DONTSHOW) {
Jesse Keating 7a32965
-		logo_shown = FBCON_LOGO_DRAW;
Jesse Keating 7a32965
-		vc->vc_top = logo_lines;
Jesse Keating 7a32965
+	if (logo_shown != FBCON_LOGO_DONTSHOW) {
Jesse Keating 7a32965
+		if (logo_lines > vc->vc_bottom) {
Jesse Keating 7a32965
+			logo_shown = FBCON_LOGO_CANSHOW;
Jesse Keating 7a32965
+			printk(KERN_INFO
Jesse Keating 7a32965
+			       "fbcon_init: disable boot-logo (boot-logo bigger than screen).\n");
Jesse Keating 7a32965
+		} else {
Jesse Keating 7a32965
+			logo_shown = FBCON_LOGO_DRAW;
Jesse Keating 7a32965
+			vc->vc_top = logo_lines;
Jesse Keating 7a32965
+		}
Jesse Keating 7a32965
 	}
Jesse Keating 7a32965
 }
Jesse Keating 7a32965
 #endif /* MODULE */
a98ed5c
@@ -3654,6 +3656,16 @@ static void __exit fb_console_exit(void)
a98ed5c
 
a98ed5c
 module_exit(fb_console_exit);
Jesse Keating 7a32965
 
a98ed5c
+#else
a98ed5c
+
Jesse Keating 7a32965
+static int __init quiet_logo(char *str)
Jesse Keating 7a32965
+{
Jesse Keating 7a32965
+	logo_shown = FBCON_LOGO_DONTSHOW;
Jesse Keating 7a32965
+	return 0;
Jesse Keating 7a32965
+}
Jesse Keating 7a32965
+
Jesse Keating 7a32965
+early_param("quiet", quiet_logo);
Jesse Keating 7a32965
+
a98ed5c
 #endif
Jesse Keating 7a32965
 
a98ed5c
 MODULE_LICENSE("GPL");
a98ed5c
-- 
a98ed5c
2.7.4
a98ed5c