MLK-11354 sim: imx: relapce devm_request_and_ioremap with devm_ioremap_resource
authorGao Pan <b54642@freescale.com>
Fri, 7 Aug 2015 06:41:00 +0000 (14:41 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:27 +0000 (14:47 -0500)
The API devm_request_and_ioremap meets compile error
on branch imx_4.1.y. It is recommend to replace the api
with devm_ioremap_resource.

Signed-off-by: Gao Pan <b54642@freescale.com>
drivers/mxc/sim/imx_sim.c

index 13c11e8..3fc865b 100755 (executable)
@@ -1769,7 +1769,7 @@ static int sim_probe(struct platform_device *pdev)
                pr_err("Can't get the MEMORY\n");
                return -ENOMEM;
        }
-       sim->ioaddr = devm_request_and_ioremap(&pdev->dev, sim->res);
+       sim->ioaddr = devm_ioremap_resource(&pdev->dev, sim->res);
        dev_dbg(&pdev->dev, "mapped base address: 0x%08x\n", (u32)sim->ioaddr);
        if (IS_ERR(sim->ioaddr)) {
                dev_err(&pdev->dev,