Commit 5811712f authored by Florian Fainelli's avatar Florian Fainelli Committed by Greg Kroah-Hartman

tty: serial: bcm63xx_uart: define UART_REG_SIZE constant

The bcm63xx_uart driver uses RSET_UART_SIZE which is a constant defined
for MIPS-based BCM63xx platforms, pull this constant value from the
MIPS-specific header and put it in include/linux/serial_bcm63xx.h to
make the driver platform agnostic.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f04430ce
...@@ -589,7 +589,7 @@ static int bcm_uart_request_port(struct uart_port *port) ...@@ -589,7 +589,7 @@ static int bcm_uart_request_port(struct uart_port *port)
{ {
unsigned int size; unsigned int size;
size = RSET_UART_SIZE; size = UART_REG_SIZE;
if (!request_mem_region(port->mapbase, size, "bcm63xx")) { if (!request_mem_region(port->mapbase, size, "bcm63xx")) {
dev_err(port->dev, "Memory region busy\n"); dev_err(port->dev, "Memory region busy\n");
return -EBUSY; return -EBUSY;
...@@ -609,7 +609,7 @@ static int bcm_uart_request_port(struct uart_port *port) ...@@ -609,7 +609,7 @@ static int bcm_uart_request_port(struct uart_port *port)
*/ */
static void bcm_uart_release_port(struct uart_port *port) static void bcm_uart_release_port(struct uart_port *port)
{ {
release_mem_region(port->mapbase, RSET_UART_SIZE); release_mem_region(port->mapbase, UART_REG_SIZE);
iounmap(port->membase); iounmap(port->membase);
} }
......
...@@ -116,4 +116,6 @@ ...@@ -116,4 +116,6 @@
UART_FIFO_PARERR_MASK | \ UART_FIFO_PARERR_MASK | \
UART_FIFO_BRKDET_MASK) UART_FIFO_BRKDET_MASK)
#define UART_REG_SIZE 24
#endif /* _LINUX_SERIAL_BCM63XX_H */ #endif /* _LINUX_SERIAL_BCM63XX_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment