summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/tty/serial/meson_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/tty/serial/meson_uart.c')
-rw-r--r--kernel/drivers/tty/serial/meson_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/tty/serial/meson_uart.c b/kernel/drivers/tty/serial/meson_uart.c
index 67c036702..0fc83c962 100644
--- a/kernel/drivers/tty/serial/meson_uart.c
+++ b/kernel/drivers/tty/serial/meson_uart.c
@@ -370,7 +370,7 @@ static int meson_uart_verify_port(struct uart_port *port,
static void meson_uart_release_port(struct uart_port *port)
{
if (port->flags & UPF_IOREMAP) {
- iounmap(port->membase);
+ devm_iounmap(port->dev, port->membase);
port->membase = NULL;
}
}