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:27:24 +0000 (13:27 -0700)
commit6e757ad2c92caf721fd0efaac7088247e3934c5e
tree6c76ee450b4531538e573a863f3137e1bdcb9470
parentd969de8d83401683420638c8107dcfedb2146f37
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