serial: pl011: honour serial aliases in device tree
authorMatthew Leach <matthew.leach@arm.com>
Tue, 28 Aug 2012 15:41:28 +0000 (16:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2012 20:18:12 +0000 (13:18 -0700)
commit32614aad30549b0e4caf44c26efe8e2b09d597ce
treea5b55ada04da752a571d260c97c7ec68c4944bf3
parent4b71598b6a1e72d11a657ccd67bdb14f1c269186
serial: pl011: honour serial aliases in device tree

If the order of UART nodes is changed in the device tree, then tty dev
devices are attached to different serial ports causing the console to
be directed to a different physical serial port. The "serial" aliases
in the device tree should prevent this.

This patch ensures that the UART driver creates tty devices that
honour these aliases if a device tree is present.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Matthew Leach <matthew.leach@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c