diff options
author | Lino Sanfilippo <l.sanfilippo@kunbus.com> | 2024-04-07 02:27:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-09 17:07:10 +0200 |
commit | 838022def8ef2b676d6f3c19cad9185ce8046008 (patch) | |
tree | b685f5c95710f850c9f990da1218ced3677d1fe0 | |
parent | 4fe952c141b285ca0b379c93c9c6c69d7240a495 (diff) | |
download | linux-stable-838022def8ef2b676d6f3c19cad9185ce8046008.tar.gz linux-stable-838022def8ef2b676d6f3c19cad9185ce8046008.tar.bz2 linux-stable-838022def8ef2b676d6f3c19cad9185ce8046008.zip |
serial: amba-pl011: get rid of useless wrapper pl011_get_rs485_mode()
Due to earlier code changes function pl011_get_rs485_mode() is now merely
a wrapper for uart_get_rs485_mode() which does not add any further
functionality. So remove it and instead call uart_get_rs485_mode()
directly.
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
Link: https://lore.kernel.org/r/20240407002709.16224-2-l.sanfilippo@kunbus.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/amba-pl011.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 51b202eb8296..76d2078ec086 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2692,18 +2692,6 @@ static int pl011_find_free_port(void) return -EBUSY; } -static int pl011_get_rs485_mode(struct uart_amba_port *uap) -{ - struct uart_port *port = &uap->port; - int ret; - - ret = uart_get_rs485_mode(port); - if (ret) - return ret; - - return 0; -} - static int pl011_setup_port(struct device *dev, struct uart_amba_port *uap, struct resource *mmiobase, int index) { @@ -2724,7 +2712,7 @@ static int pl011_setup_port(struct device *dev, struct uart_amba_port *uap, uap->port.flags = UPF_BOOT_AUTOCONF; uap->port.line = index; - ret = pl011_get_rs485_mode(uap); + ret = uart_get_rs485_mode(&uap->port); if (ret) return ret; |