3222f9a
From a8a15723637c6dfbd5042b5c3453d31f5815f044 Mon Sep 17 00:00:00 2001
6a91557
From: "kernel-team@fedoraproject.org" <kernel-team@fedoraproject.org>
6a91557
Date: Thu, 29 Jul 2010 16:46:31 -0700
6a91557
Subject: [PATCH] silence fbcon logo
6a91557
68d0d67
Bugzilla: N/A
68d0d67
Upstream-status: Fedora mustard
6a91557
---
3222f9a
 drivers/video/console/fbcon.c | 26 +++++++++++++++++++-------
3222f9a
 1 file changed, 19 insertions(+), 7 deletions(-)
68d0d67
Jesse Keating 7a32965
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
3222f9a
index afd3301ac40c..2e08ba0ade3e 100644
Jesse Keating 7a32965
--- a/drivers/video/console/fbcon.c
Jesse Keating 7a32965
+++ b/drivers/video/console/fbcon.c
a281db6
@@ -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 */
3222f9a
@@ -3654,6 +3656,16 @@ static void __exit fb_console_exit(void)
3222f9a
 
3222f9a
 module_exit(fb_console_exit);
Jesse Keating 7a32965
 
3222f9a
+#else
3222f9a
+
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
+
3222f9a
 #endif
Jesse Keating 7a32965
 
3222f9a
 MODULE_LICENSE("GPL");
3222f9a
-- 
3222f9a
2.7.4
3222f9a