aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2015-05-07 14:19:21 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-08 08:20:50 -0400
commit66c53aaa9c82766d4e9253748c6988441d8c2dc1 (patch)
tree83123e215f80cab101fcfbc80e750bde481910f7
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22 (diff)
earlycon: Revert log warnings
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>
-rw-r--r--drivers/tty/serial/earlycon.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/tty/serial/earlycon.c b/drivers/tty/serial/earlycon.c
index 5fdc9f3ecd64..6dc471e30e79 100644
--- a/drivers/tty/serial/earlycon.c
+++ b/drivers/tty/serial/earlycon.c
@@ -187,13 +187,8 @@ static int __init param_setup_earlycon(char *buf)
187 return 0; 187 return 0;
188 188
189 err = setup_earlycon(buf); 189 err = setup_earlycon(buf);
190 if (err == -ENOENT) { 190 if (err == -ENOENT || err == -EALREADY)
191 pr_warn("no match for %s\n", buf); 191 return 0;
192 err = 0;
193 } else if (err == -EALREADY) {
194 pr_warn("already registered\n");
195 err = 0;
196 }
197 return err; 192 return err;
198} 193}
199early_param("earlycon", param_setup_earlycon); 194early_param("earlycon", param_setup_earlycon);