tty/serial: at91: fix uart/usart selection for older products
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 17 Oct 2013 15:37:11 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2013 20:30:14 +0000 (13:30 -0700)
commit892db58bd1285d44e6e1a1e36157161990ec5ae4
treeb08ef2691b4ff1e0f265ae62e12ae5b490aab9d3
parent2c62a3c899805be7f054847d80210183e4a982d9
tty/serial: at91: fix uart/usart selection for older products

Since commit 055560b04a8cd063aea916fd083b7aec02c2adb8 (serial: at91:
distinguish usart and uart) the older products which do not have a
name field in their register map are unable to use their serial output.
As the main console output is usually the serial interface (aka DBGU) it
is pretty unfortunate.
So, instead of failing during probe() we just silently configure the serial
peripheral as an uart. It allows us to use these serial outputs.
The proper solution is proposed in another patch.

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