diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-09-20 21:45:56 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-09-20 21:45:56 +0200 |
commit | 1fdb4888e45f1413972a8e9da55f3ffc08b9abcb (patch) | |
tree | 635ef73cdff38d21a529bbdcab4cd2cb39a29484 /drivers/tty/serial/atmel_serial.c | |
parent | 1884af9365a96314164f4110d4528d425e5dd843 (diff) | |
parent | ceb1c532ba6220900e61ec7073a9234661efa450 (diff) |
Merge branch 'omap/cleanup' into next/cleanup
Diffstat (limited to 'drivers/tty/serial/atmel_serial.c')
-rw-r--r-- | drivers/tty/serial/atmel_serial.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index af9b7814965a..b922f5d2e61e 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -1609,9 +1609,11 @@ static struct console atmel_console = { static int __init atmel_console_init(void) { if (atmel_default_console_device) { - add_preferred_console(ATMEL_DEVICENAME, - atmel_default_console_device->id, NULL); - atmel_init_port(&atmel_ports[atmel_default_console_device->id], + struct atmel_uart_data *pdata = + atmel_default_console_device->dev.platform_data; + + add_preferred_console(ATMEL_DEVICENAME, pdata->num, NULL); + atmel_init_port(&atmel_ports[pdata->num], atmel_default_console_device); register_console(&atmel_console); } |