atmel_serial: fix atmel_default_console_device

reflect new static uart platform ids introduced by patch
http://article.gmane.org/gmane.linux.kernel/1126105

Signed-off-by: Nikolaus Voss <n.voss@weinmann.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Voss, Nikolaus 2011-08-10 14:02:29 +02:00 committed by Greg Kroah-Hartman
parent ab8ba3a2d2
commit 0d0a3cc183
1 changed files with 5 additions and 3 deletions

View File

@ -1609,9 +1609,11 @@ static struct console atmel_console = {
static int __init atmel_console_init(void) static int __init atmel_console_init(void)
{ {
if (atmel_default_console_device) { if (atmel_default_console_device) {
add_preferred_console(ATMEL_DEVICENAME, struct atmel_uart_data *pdata =
atmel_default_console_device->id, NULL); atmel_default_console_device->dev.platform_data;
atmel_init_port(&atmel_ports[atmel_default_console_device->id],
add_preferred_console(ATMEL_DEVICENAME, pdata->num, NULL);
atmel_init_port(&atmel_ports[pdata->num],
atmel_default_console_device); atmel_default_console_device);
register_console(&atmel_console); register_console(&atmel_console);
} }