tty/serial: atmel_serial: auto-enumerate ports
commit4cbf9f4864bd4fb2e64d555aacb93c24478e4e8d
authorNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 12 Oct 2011 16:06:59 +0000 (12 18:06 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 18 Oct 2011 23:42:07 +0000 (18 16:42 -0700)
tree80d85d123ee482dfa2b3881f5a0f3cf755c29416
parent588edbf3b8948d94a52da5d6b45c9bb7307d1f01
tty/serial: atmel_serial: auto-enumerate ports

If no platform data provided to enumerate ports, use a bit field
to choose port number and check if port is already initialized.
Use this mechanism for both console and plain serial ports.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/atmel_serial.c