Message ID | 10028785-166f-4473-900a-c845cb690dc8@web.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | bus: omap_l3_noc: Use devm_platform_get_and_ioremap_resource() in omap_l3_probe() | expand |
diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index eb1ba6319fda..3c9e342b9e35 100644 --- a/drivers/bus/omap_l3_noc.c +++ b/drivers/bus/omap_l3_noc.c @@ -263,8 +263,10 @@ static int omap_l3_probe(struct platform_device *pdev) l3->l3_base[i] = l3->l3_base[i - 1]; continue; } - res = platform_get_resource(pdev, IORESOURCE_MEM, res_idx); - l3->l3_base[i] = devm_ioremap_resource(&pdev->dev, res); + + l3->l3_base[i] = devm_platform_get_and_ioremap_resource(pdev, + res_idx, + &res); if (IS_ERR(l3->l3_base[i])) { dev_err(l3->dev, "ioremap %d failed\n", i); return PTR_ERR(l3->l3_base[i]);