Commit 9d5b6a95 authored by Andy Shevchenko's avatar Andy Shevchenko

pinctrl: intel: Use devm_platform_ioremap_resource()

Use the new helper that wraps the calls to platform_get_resource()
and devm_ioremap_resource() together.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent a86f12b2
...@@ -1313,15 +1313,12 @@ static int intel_pinctrl_probe(struct platform_device *pdev, ...@@ -1313,15 +1313,12 @@ static int intel_pinctrl_probe(struct platform_device *pdev,
for (i = 0; i < pctrl->ncommunities; i++) { for (i = 0; i < pctrl->ncommunities; i++) {
struct intel_community *community = &pctrl->communities[i]; struct intel_community *community = &pctrl->communities[i];
struct resource *res;
void __iomem *regs; void __iomem *regs;
u32 padbar; u32 padbar;
*community = pctrl->soc->communities[i]; *community = pctrl->soc->communities[i];
res = platform_get_resource(pdev, IORESOURCE_MEM, regs = devm_platform_ioremap_resource(pdev, community->barno);
community->barno);
regs = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(regs)) if (IS_ERR(regs))
return PTR_ERR(regs); return PTR_ERR(regs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment