tty/serial: at91: add a fallback option to determine uart/usart property
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 17 Oct 2013 15:37:12 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2013 20:31:19 +0000 (13:31 -0700)
commit731d9cae0204a8948c7db2f551edcd5d5822ed95
tree904a627df3c9809d9d60bd3cbaae72309f604e32
parent892db58bd1285d44e6e1a1e36157161990ec5ae4
tty/serial: at91: add a fallback option to determine uart/usart property

On older SoC, the "name" field is not filled in the register map.
Fix the way to figure out if the serial port is an uart or an usart for these
older products (with corresponding properties).

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c
include/linux/atmel_serial.h