summaryrefslogtreecommitdiff
path: root/net/decnet
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2014-04-21 16:40:34 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-24 22:38:21 (GMT)
commitbb7f09ba961dd43a2398975cc2d4ad0eb77ec865 (patch)
tree9e5f6702835084d1dcad66929272fddc08a3e620 /net/decnet
parentf8fd1b0350d3a4581125f5eda6528f5a2c5f9183 (diff)
downloadlinux-bb7f09ba961dd43a2398975cc2d4ad0eb77ec865.tar.xz
serial: samsung: Use the passed in "port", fixing kgdb w/ no console
The two functions in the samsung serial driver used for writing characters out to the port were inconsistent about whether they used the passed in "port" or the global "cons_uart". There was no reason to use the global and the use of the global in s3c24xx_serial_put_poll_char() caused a crash in the case where you used the serial port for kgdboc but not for console. Fix it so we used the passed in variable. Note that this doesn't fix all problems with the samsung serial driver. Specifically: * s3c24xx_serial_console_putchar() is still 99% identical to s3c24xx_serial_put_poll_char() (the function signature is different, but that's about it). A future patch will make them slightly less identical and judging by other serial drivers we may need yet more differences eventually. * The samsung serial driver still doesn't allow you to have more than one console port since it still uses the global cons_uart in s3c24xx_serial_console_write(). Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/decnet')
0 files changed, 0 insertions, 0 deletions