]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
serial: 8250_platform: Remove duplicate mapping
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Aug 2024 15:47:03 +0000 (18:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 06:22:50 +0000 (08:22 +0200)
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>
drivers/tty/serial/8250/8250_platform.c

index 3fa52f014c4dab0ea3938e71d9ee352752ffcafc..8e1cedf36db28d4673d725933a11f3bf56a5207e 100644 (file)
@@ -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.