]> git.baikalelectronics.ru Git - uboot.git/commit
serial: mcfuart: fix uart port index
authorAngelo Durgehello <angelo.dureghello@timesys.com>
Sat, 29 Feb 2020 00:01:32 +0000 (01:01 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 13 Mar 2020 13:28:17 +0000 (09:28 -0400)
commitbb26e068809eb0b96f7b9b81acf9034dfce960a9
treea273f2235ffb0b0aa8206e027b5a08ecc1263b03
parentfdb8b4faadc4032a09d238c04d09e0efc26fa219
serial: mcfuart: fix uart port index

Actually, using dev->seq value before probe to deduce the current
serial port index leads to reading an invalid seq value (-1).
So, getting dev->seq at probe time.

Signed-off-by: Angelo Durgehello <angelo.dureghello@timesys.com>
drivers/serial/mcfuart.c