Message ID | 5c56f149-baa7-4907-b7d4-7a7bf6bd74db@web.de |
---|---|
State | New |
Headers | show |
Series | bus: omap-ocp2scp: Use devm_platform_get_and_ioremap_resource() in omap_ocp2scp_probe() | expand |
diff --git a/drivers/bus/omap-ocp2scp.c b/drivers/bus/omap-ocp2scp.c index 7d7479ba0a75..16d3c1807e1c 100644 --- a/drivers/bus/omap-ocp2scp.c +++ b/drivers/bus/omap-ocp2scp.c @@ -58,8 +58,7 @@ static int omap_ocp2scp_probe(struct platform_device *pdev) * of SYNC2 parameter in OCP2SCP. Suggested reset value is 0x6 or more. */ if (!of_device_is_compatible(np, "ti,am437x-ocp2scp")) { - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(&pdev->dev, res); + regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(regs)) { ret = PTR_ERR(regs); goto err1;