aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index 0eb1c7463fe4..038c7cb52390 100644
--- a/init/main.c
+++ b/init/main.c
@@ -453,7 +453,10 @@ static int __init do_early_param(char *param, char *val)
453 struct obs_kernel_param *p; 453 struct obs_kernel_param *p;
454 454
455 for (p = __setup_start; p < __setup_end; p++) { 455 for (p = __setup_start; p < __setup_end; p++) {
456 if (p->early && strcmp(param, p->str) == 0) { 456 if ((p->early && strcmp(param, p->str) == 0) ||
457 (strcmp(param, "console") == 0 &&
458 strcmp(p->str, "earlycon") == 0)
459 ) {
457 if (p->setup_func(val) != 0) 460 if (p->setup_func(val) != 0)
458 printk(KERN_WARNING 461 printk(KERN_WARNING
459 "Malformed early option '%s'\n", param); 462 "Malformed early option '%s'\n", param);