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
---
6a91557
 drivers/video/console/fbcon.c | 24 +++++++++++++++++-------
6a91557
 1 file changed, 17 insertions(+), 7 deletions(-)
68d0d67
Jesse Keating 7a32965
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
a011ddd
index eb976ee3a02f..275f20a643f4 100644
Jesse Keating 7a32965
--- a/drivers/video/console/fbcon.c
Jesse Keating 7a32965
+++ b/drivers/video/console/fbcon.c
a011ddd
@@ -637,13 +637,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 */
a011ddd
@@ -3624,6 +3626,14 @@ static int __init fb_console_init(void)
Jesse Keating 7a32965
 	return 0;
Jesse Keating 7a32965
 }
Jesse Keating 7a32965
 
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
+
Jesse Keating 7a32965
 module_init(fb_console_init);
Jesse Keating 7a32965
 
Jesse Keating 7a32965
 #ifdef MODULE
6a91557
-- 
1e63a38
2.1.0
6a91557