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)
commitce5e3ea7995269a49a530284af25cc8cc44bb37d
treea273f2235ffb0b0aa8206e027b5a08ecc1263b03
parentdb3b1818b7a9711084255713ec14cb886eb79b12
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