mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
serial: 8250_ni: 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> Tested-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com> Reviewed-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com> Link: https://lore.kernel.org/r/20250321182119.454507-3-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
57de87b146
commit
9b4a192adf
|
|
@ -239,11 +239,6 @@ static int ni16550_get_regs(struct platform_device *pdev,
|
|||
port->mapsize = resource_size(regs);
|
||||
port->flags |= UPF_IOREMAP;
|
||||
|
||||
port->membase = devm_ioremap(&pdev->dev, port->mapbase,
|
||||
port->mapsize);
|
||||
if (!port->membase)
|
||||
return -ENOMEM;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user