]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
serial: xuartps: Fix register space size.
authorThomas Betker <thomas.betker@rohde-schwarz.com>
Wed, 11 Mar 2015 21:39:25 +0000 (22:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 21:52:29 +0000 (22:52 +0100)
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>
drivers/tty/serial/xilinx_uartps.c

index 09258de6947ea89c8e762900d244d35a490a3dd4..b8fbd4767c17fac51cd4c18fb341c24a0464fdc3 100644 (file)
@@ -37,7 +37,7 @@
 #define CDNS_UART_MINOR                0       /* works best with devtmpfs */
 #define CDNS_UART_NR_PORTS     2
 #define CDNS_UART_FIFO_SIZE    64      /* FIFO size */
-#define CDNS_UART_REGISTER_SPACE       0xFFF
+#define CDNS_UART_REGISTER_SPACE       0x1000
 
 #define cdns_uart_readl(offset)                ioread32(port->membase + offset)
 #define cdns_uart_writel(val, offset)  iowrite32(val, port->membase + offset)