Commit acf7c31d authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240812154901.1068407-2-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7c199bd2
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment