diff options
| author | Thomas Betker <thomas.betker@rohde-schwarz.com> | 2015-03-11 17:39:25 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-26 17:52:29 -0400 |
| commit | 9646e4fee42d080ad484eef005691a17ed9cb8e7 (patch) | |
| tree | c0d7676821679da67d9a4f8b5505233f572af53f /drivers/tty | |
| parent | 0787691230d88af8cdfc6d4085957bbf7cec1e5d (diff) | |
serial: xuartps: Fix register space size.
The register space size is 0x1000, and this value [not 0xfff] should be
provided to request_mem_region(), ioremap(), etc.
Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
| -rw-r--r-- | drivers/tty/serial/xilinx_uartps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 09258de6947e..b8fbd4767c17 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #define CDNS_UART_MINOR 0 /* works best with devtmpfs */ | 37 | #define CDNS_UART_MINOR 0 /* works best with devtmpfs */ |
| 38 | #define CDNS_UART_NR_PORTS 2 | 38 | #define CDNS_UART_NR_PORTS 2 |
| 39 | #define CDNS_UART_FIFO_SIZE 64 /* FIFO size */ | 39 | #define CDNS_UART_FIFO_SIZE 64 /* FIFO size */ |
| 40 | #define CDNS_UART_REGISTER_SPACE 0xFFF | 40 | #define CDNS_UART_REGISTER_SPACE 0x1000 |
| 41 | 41 | ||
| 42 | #define cdns_uart_readl(offset) ioread32(port->membase + offset) | 42 | #define cdns_uart_readl(offset) ioread32(port->membase + offset) |
| 43 | #define cdns_uart_writel(val, offset) iowrite32(val, port->membase + offset) | 43 | #define cdns_uart_writel(val, offset) iowrite32(val, port->membase + offset) |
