summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-08-12 18:47:03 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-14 08:22:50 +0200
commitacf7c31def54147964955b61b883d440e0fd1a7f (patch)
treeacf1f5ba895bfcd5a217bbd101af408109bfb37d /drivers/tty
parent7c199bd2fdcbc221b6f77d624c34f864ad938487 (diff)
downloadlinux-acf7c31def54147964955b61b883d440e0fd1a7f.tar.gz
linux-acf7c31def54147964955b61b883d440e0fd1a7f.tar.bz2
linux-acf7c31def54147964955b61b883d440e0fd1a7f.zip
serial: 8250_platform: Remove duplicate mapping
UPF_IOREMAP is for serial core to map the resource on behalf of the driver. No need to perform this explicitly in the driver. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20240812154901.1068407-2-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_platform.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/tty/serial/8250/8250_platform.c b/drivers/tty/serial/8250/8250_platform.c
index 3fa52f014c4d..8e1cedf36db2 100644
--- a/drivers/tty/serial/8250/8250_platform.c
+++ b/drivers/tty/serial/8250/8250_platform.c
@@ -142,12 +142,6 @@ static int serial8250_platform_probe(struct platform_device *pdev)
if (ret)
return ret;
- if (uart.port.mapbase) {
- uart.port.membase = devm_ioremap(dev, uart.port.mapbase, uart.port.mapsize);
- if (!uart.port.membase)
- return -ENOMEM;
- }
-
/*
* The previous call may not set iotype correctly when reg-io-width
* property is absent and it doesn't support IO port resource.