[PATCH v1 1/7] serial: 8250_platform: Remove duplicate mapping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 drivers/tty/serial/8250/8250_platform.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/tty/serial/8250/8250_platform.c b/drivers/tty/serial/8250/8250_platform.c
index 73002faaae4b..a0e71b03015a 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.
-- 
2.43.0.rc1.1336.g36b5255a03ac





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux