Hello. Jeremy Kerr wrote:
Currently, the iomem resources are parsed in serial_imx_probe, then again in imx_request_port and imx_release_port. This change uses the imx_port data to retrieve the start and size of the memory region, rather than re-parsing the resources through platform_get_resource. Signed-off-by: Jeremy Kerr <jeremy.kerr@xxxxxxxxxxxxx> --- drivers/serial/imx.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index e579d7a..7de6bf7 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c
[...]
@@ -1245,6 +1238,7 @@ static int serial_imx_probe(struct platform_device *pdev) sport->port.dev = &pdev->dev; sport->port.mapbase = res->start; sport->port.membase = base; + sport->mapsize = res->end - res->start + 1;
There's resource_size() for this calculation. WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html