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