summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/intel
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-07-03 17:44:20 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-07-23 16:13:13 +0300
commit24025010d1b9d49bda11727f068a9dae381db6f8 (patch)
tree494ac37f948eb05a5bc3171edec2410953bf0413 /drivers/pinctrl/intel
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
downloadlinux-24025010d1b9d49bda11727f068a9dae381db6f8.tar.xz
pinctrl: baytrail: 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/intel')
-rw-r--r--drivers/pinctrl/intel/pinctrl-baytrail.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pinctrl/intel/pinctrl-baytrail.c b/drivers/pinctrl/intel/pinctrl-baytrail.c
index e5a112a8e067..14a81943c5ab 100644
--- a/drivers/pinctrl/intel/pinctrl-baytrail.c
+++ b/drivers/pinctrl/intel/pinctrl-baytrail.c
@@ -1580,12 +1580,10 @@ static int byt_set_soc_data(struct byt_gpio *vg,
for (i = 0; i < soc_data->ncommunities; i++) {
struct byt_community *comm = vg->communities_copy + i;
- struct resource *mem_rc;
*comm = vg->soc_data->communities[i];
- mem_rc = platform_get_resource(vg->pdev, IORESOURCE_MEM, 0);
- comm->reg_base = devm_ioremap_resource(&vg->pdev->dev, mem_rc);
+ comm->reg_base = devm_platform_ioremap_resource(vg->pdev, 0);
if (IS_ERR(comm->reg_base))
return PTR_ERR(comm->reg_base);
}