diff options
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/atmel_serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index 6d5d6e679fc7..af9b7814965a 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c | |||
@@ -1709,12 +1709,13 @@ static int atmel_serial_resume(struct platform_device *pdev) | |||
1709 | static int __devinit atmel_serial_probe(struct platform_device *pdev) | 1709 | static int __devinit atmel_serial_probe(struct platform_device *pdev) |
1710 | { | 1710 | { |
1711 | struct atmel_uart_port *port; | 1711 | struct atmel_uart_port *port; |
1712 | struct atmel_uart_data *pdata = pdev->dev.platform_data; | ||
1712 | void *data; | 1713 | void *data; |
1713 | int ret; | 1714 | int ret; |
1714 | 1715 | ||
1715 | BUILD_BUG_ON(ATMEL_SERIAL_RINGSIZE & (ATMEL_SERIAL_RINGSIZE - 1)); | 1716 | BUILD_BUG_ON(ATMEL_SERIAL_RINGSIZE & (ATMEL_SERIAL_RINGSIZE - 1)); |
1716 | 1717 | ||
1717 | port = &atmel_ports[pdev->id]; | 1718 | port = &atmel_ports[pdata->num]; |
1718 | port->backup_imr = 0; | 1719 | port->backup_imr = 0; |
1719 | 1720 | ||
1720 | atmel_init_port(port, pdev); | 1721 | atmel_init_port(port, pdev); |