serial: 8250_pxa: honor the port number from devicetree
authorLubomir Rintel <lkundrak@v3.sk>
Sun, 24 Feb 2019 11:58:02 +0000 (12:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Feb 2019 11:30:44 +0000 (12:30 +0100)
commitfe9ed6d2483fda55465f32924fb15bce0fac3fac
tree0aacb3da4934ff291d21b5ed768413e5c0fb9f57
parentd56f00fd5380a77c2cd56231bb02fe54b96a7766
serial: 8250_pxa: honor the port number from devicetree

Like the other OF-enabled drivers, use the port number from the firmware if
the devicetree specifies an alias:

  aliases {
      ...
      serial2 = &uart2; /* Should be ttyS2 */
  }

This is how the deprecated pxa.c driver behaved, switching to 8250_pxa
messes up the numbering.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pxa.c