summaryrefslogtreecommitdiffstats
path: root/drivers
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 14:20:50 +0200
commit66c53aaa9c82766d4e9253748c6988441d8c2dc1 (patch)
tree83123e215f80cab101fcfbc80e750bde481910f7 /drivers
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22 (diff)
downloadlinux-66c53aaa9c82766d4e9253748c6988441d8c2dc1.tar.gz
linux-66c53aaa9c82766d4e9253748c6988441d8c2dc1.tar.bz2
linux-66c53aaa9c82766d4e9253748c6988441d8c2dc1.zip
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>
Diffstat (limited to 'drivers')
-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)
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);