mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ARM: OMAP2+: UART: Remove mapbase/membase fields from pdata.
The mapbase (start_address), membase(io_remap cookie) part of pdata struct omap_uart_port_info are removed as this should be derived within driver. Signed-off-by: Govindraj.R <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> (for drivers/tty changes) Signed-off-by: Kevin Hilman <[email protected]>
This commit is contained in:
parent
7496ba309f
commit
edd70ad757
3 changed files with 8 additions and 6 deletions
|
|
@ -1275,8 +1275,14 @@ static int serial_omap_probe(struct platform_device *pdev)
|
|||
up->port.ops = &serial_omap_pops;
|
||||
up->port.line = pdev->id;
|
||||
|
||||
up->port.membase = omap_up_info->membase;
|
||||
up->port.mapbase = omap_up_info->mapbase;
|
||||
up->port.mapbase = mem->start;
|
||||
up->port.membase = ioremap(mem->start, resource_size(mem));
|
||||
if (!up->port.membase) {
|
||||
dev_err(&pdev->dev, "can't ioremap UART\n");
|
||||
ret = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
|
||||
up->port.flags = omap_up_info->flags;
|
||||
up->port.uartclk = omap_up_info->uartclk;
|
||||
up->uart_dma.uart_base = mem->start;
|
||||
|
|
|
|||
Loading…
Reference in a new issue