diff options
Diffstat (limited to 'drivers/serial/atmel_serial.c')
-rw-r--r-- | drivers/serial/atmel_serial.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c index 2f9d99bb9587..34212df39800 100644 --- a/drivers/serial/atmel_serial.c +++ b/drivers/serial/atmel_serial.c | |||
@@ -694,8 +694,9 @@ static void __devinit atmel_init_port(struct atmel_uart_port *atmel_port, struct | |||
694 | port->mapbase = pdev->resource[0].start; | 694 | port->mapbase = pdev->resource[0].start; |
695 | port->irq = pdev->resource[1].start; | 695 | port->irq = pdev->resource[1].start; |
696 | 696 | ||
697 | if (port->mapbase == AT91_VA_BASE_SYS + AT91_DBGU) /* Part of system perpherals - already mapped */ | 697 | if (data->regs) |
698 | port->membase = (void __iomem *) port->mapbase; | 698 | /* Already mapped by setup code */ |
699 | port->membase = data->regs; | ||
699 | else { | 700 | else { |
700 | port->flags |= UPF_IOREMAP; | 701 | port->flags |= UPF_IOREMAP; |
701 | port->membase = NULL; | 702 | port->membase = NULL; |