Revert "serial: core: Use cons->index for preferred console registration"
authorMichal Simek <michal.simek@xilinx.com>
Wed, 16 Oct 2019 10:36:41 +0000 (12:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2019 11:05:24 +0000 (04:05 -0700)
commitdd8b7a1db5d0dad985923f2bda418d619e8b0c5c
tree9ba5c616f4a58c526e90b40c3bd8cb24f4ccad77
parent6e73113784acf25b0b2d3eb316ab1c765a8858e4
Revert "serial: core: Use cons->index for preferred console registration"

This reverts commit 91daae03188e0dd1da3c1b599df4ce7539d5a69f.

The origin patch is causing an issue on r8a7791/koelsch and
r8a7795/salvator-xs platforms where cons->index is not initialized to
expected value.
It is safer to revert this patch for now till it is clear why this is
happening.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/59f51af6bb03fce823663764d17ad0291aa01ab2.1571222199.git.michal.simek@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c