]> git.sur5r.net Git - u-boot/commit
dm: serial: fix console putc
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 23 Oct 2014 13:26:06 +0000 (22:26 +0900)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 03:43:08 +0000 (21:43 -0600)
commitbac644675ac900e27dc079cf062b55fa71a4c211
treefe3412a00da761d28dc9fea814ec65f6f5259793
parent3fdd0bb2b0dc20f192e9ea8682d5c18f37daadc1
dm: serial: fix console putc

Commit b8893327e9d2 (dm: serial: Put common code into separate functions)
consolidated getc() correctly, but introduced another bug to putc();
serial_stub_putc() passes sdev->priv to serial_putc_dev(), but
serial_putc_dev() uses cur_dev instead of the given argument.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial-uclass.c