In a final attempt to find a console UART this function uses the first first available serial device. However the check for a valid device is inverted. This code is only executed when there is in fact no serial UART, but at present it can fail to reach the panic_str() call in this case, and start trying to use a non-existent UART. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
altera_jtag_uart.c | ||
altera_uart.c | ||
arm_dcc.c | ||
atmel_usart.c | ||
atmel_usart.h | ||
lpc32xx_hsuart.c | ||
mcfuart.c | ||
mxs_auart.c | ||
ns16550.c | ||
opencores_yanu.c | ||
sandbox.c | ||
serial-uclass.c | ||
serial.c | ||
serial_arc.c | ||
serial_bfin.c | ||
serial_dw.c | ||
serial_imx.c | ||
serial_lpuart.c | ||
serial_max3100.c | ||
serial_mxc.c | ||
serial_ns16550.c | ||
serial_omap.c | ||
serial_pl01x.c | ||
serial_pl01x_internal.h | ||
serial_ppc.c | ||
serial_pxa.c | ||
serial_s3c24x0.c | ||
serial_s5p.c | ||
serial_sa1100.c | ||
serial_sh.c | ||
serial_sh.h | ||
serial_stm32.c | ||
serial_tegra.c | ||
serial_uniphier.c | ||
serial_x86.c | ||
serial_xuartlite.c | ||
serial_zynq.c | ||
usbtty.c | ||
usbtty.h |