tty: xuartps: Initialize ports according to aliases
authorMichal Simek <michal.simek@xilinx.com>
Sat, 5 Apr 2014 00:23:38 +0000 (17:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Apr 2014 23:21:50 +0000 (16:21 -0700)
commit928e9263492069eeebb4c867b841508837895e0e
treee99bb1b48274b5a9359fa4d87f0e8c5d6dadb874
parent489810a1a6efa08eb8168b96dcc22d71be2867b9
tty: xuartps: Initialize ports according to aliases

Register port numbers according to order in DT aliases.
If aliases are not defined, order in DT is used.
If aliases are defined, register port id based
on that.
This patch ensures proper ttyPS0/1 assignment.

[soren]: Combined integer declarations in probe(), removed warning message
if no alias is found.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c