summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/earlycon.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2015-03-09 23:27:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-26 18:17:55 +0300
commitcd385e9a2a2daa7e74003f930886e4c1cdf032f4 (patch)
tree3ef3dfeaafeada0b1c859b6ebb386aaa78826c11 /drivers/tty/serial/earlycon.c
parent0e3e143e5d1e7be65331cdf6d100b08bc6c15b72 (diff)
downloadlinux-cd385e9a2a2daa7e74003f930886e4c1cdf032f4.tar.xz
serial: 8250_early: Fix setup() error code
If parsing failed to decode a valid uart addr, return -ENODEV instead of success. Although setup_earlycon() will detect the failure anyway (because the write() method has not been set), that behavior is not obvious and should not be relied on. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/earlycon.c')
0 files changed, 0 insertions, 0 deletions