diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-07-03 17:44:20 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-07-23 16:13:14 +0300 |
commit | 9d5b6a9520ad854c271832b634b9016443a140d6 (patch) | |
tree | f0ec15416525dfbd57a9a04fe925026ce67c061f /drivers/pinctrl | |
parent | a86f12b2770a5bc25ea721f976a6cc5c55d6f481 (diff) | |
download | talos-op-linux-9d5b6a9520ad854c271832b634b9016443a140d6.tar.gz talos-op-linux-9d5b6a9520ad854c271832b634b9016443a140d6.zip |
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/intel/pinctrl-intel.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c index a18d6eefe672..5e460428a428 100644 --- a/drivers/pinctrl/intel/pinctrl-intel.c +++ b/drivers/pinctrl/intel/pinctrl-intel.c @@ -1313,15 +1313,12 @@ static int intel_pinctrl_probe(struct platform_device *pdev, for (i = 0; i < pctrl->ncommunities; i++) { struct intel_community *community = &pctrl->communities[i]; - struct resource *res; void __iomem *regs; u32 padbar; *community = pctrl->soc->communities[i]; - res = platform_get_resource(pdev, IORESOURCE_MEM, - community->barno); - regs = devm_ioremap_resource(&pdev->dev, res); + regs = devm_platform_ioremap_resource(pdev, community->barno); if (IS_ERR(regs)) return PTR_ERR(regs); |