Skip to content

Commit

Permalink
earlycon: Revert log warnings
Browse files Browse the repository at this point in the history
Log warnings meant to help diagnose problems setting up earlycon
are reporting false positives for 'console='. Revert to the
previous behavior which reported nothing.

Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Peter Hurley authored and Greg Kroah-Hartman committed May 8, 2015
1 parent 5ebe6af commit 66c53aa
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/tty/serial/earlycon.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,8 @@ static int __init param_setup_earlycon(char *buf)
return 0;

err = setup_earlycon(buf);
if (err == -ENOENT) {
pr_warn("no match for %s\n", buf);
err = 0;
} else if (err == -EALREADY) {
pr_warn("already registered\n");
err = 0;
}
if (err == -ENOENT || err == -EALREADY)
return 0;
return err;
}
early_param("earlycon", param_setup_earlycon);
Expand Down

0 comments on commit 66c53aa

Please sign in to comment.