sharkcz / rpms / kernel

Forked from rpms/kernel 6 years ago
Clone
Jesse Keating 3494df0
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
Jesse Keating 3494df0
index 1657b96..4c5c2be 100644
Jesse Keating 3494df0
--- a/drivers/video/console/fbcon.c
Jesse Keating 3494df0
+++ b/drivers/video/console/fbcon.c
Jesse Keating 3494df0
@@ -631,13 +631,15 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
Jesse Keating 3494df0
 		kfree(save);
Jesse Keating 3494df0
 	}
Jesse Keating 3494df0
 
Jesse Keating 3494df0
-	if (logo_lines > vc->vc_bottom) {
Jesse Keating 3494df0
-		logo_shown = FBCON_LOGO_CANSHOW;
Jesse Keating 3494df0
-		printk(KERN_INFO
Jesse Keating 3494df0
-		       "fbcon_init: disable boot-logo (boot-logo bigger than screen).\n");
Jesse Keating 3494df0
-	} else if (logo_shown != FBCON_LOGO_DONTSHOW) {
Jesse Keating 3494df0
-		logo_shown = FBCON_LOGO_DRAW;
Jesse Keating 3494df0
-		vc->vc_top = logo_lines;
Jesse Keating 3494df0
+	if (logo_shown != FBCON_LOGO_DONTSHOW) {
Jesse Keating 3494df0
+		if (logo_lines > vc->vc_bottom) {
Jesse Keating 3494df0
+			logo_shown = FBCON_LOGO_CANSHOW;
Jesse Keating 3494df0
+			printk(KERN_INFO
Jesse Keating 3494df0
+			       "fbcon_init: disable boot-logo (boot-logo bigger than screen).\n");
Jesse Keating 3494df0
+		} else {
Jesse Keating 3494df0
+			logo_shown = FBCON_LOGO_DRAW;
Jesse Keating 3494df0
+			vc->vc_top = logo_lines;
Jesse Keating 3494df0
+		}
Jesse Keating 3494df0
 	}
Jesse Keating 3494df0
 }
Jesse Keating 3494df0
 #endif /* MODULE */
Jesse Keating 3494df0
@@ -3489,6 +3491,14 @@ static int __init fb_console_init(void)
Jesse Keating 3494df0
 	return 0;
Jesse Keating 3494df0
 }
Jesse Keating 3494df0
 
Jesse Keating 3494df0
+static int __init quiet_logo(char *str)
Jesse Keating 3494df0
+{
Jesse Keating 3494df0
+	logo_shown = FBCON_LOGO_DONTSHOW;
Jesse Keating 3494df0
+	return 0;
Jesse Keating 3494df0
+}
Jesse Keating 3494df0
+
Jesse Keating 3494df0
+early_param("quiet", quiet_logo);
Jesse Keating 3494df0
+
Jesse Keating 3494df0
 module_init(fb_console_init);
Jesse Keating 3494df0
 
Jesse Keating 3494df0
 #ifdef MODULE