Commit 5811712ffbf593d98b6cc56461df5be4e9580245
Committed by
Greg Kroah-Hartman
1 parent
f04430cead
Exists in
master
and in
13 other branches
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: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 2 changed files with 4 additions and 2 deletions Side-by-side Diff
drivers/tty/serial/bcm63xx_uart.c
... | ... | @@ -589,7 +589,7 @@ |
589 | 589 | { |
590 | 590 | unsigned int size; |
591 | 591 | |
592 | - size = RSET_UART_SIZE; | |
592 | + size = UART_REG_SIZE; | |
593 | 593 | if (!request_mem_region(port->mapbase, size, "bcm63xx")) { |
594 | 594 | dev_err(port->dev, "Memory region busy\n"); |
595 | 595 | return -EBUSY; |
... | ... | @@ -609,7 +609,7 @@ |
609 | 609 | */ |
610 | 610 | static void bcm_uart_release_port(struct uart_port *port) |
611 | 611 | { |
612 | - release_mem_region(port->mapbase, RSET_UART_SIZE); | |
612 | + release_mem_region(port->mapbase, UART_REG_SIZE); | |
613 | 613 | iounmap(port->membase); |
614 | 614 | } |
615 | 615 |