linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/4] pinctrl: baytrail: Use devm_platform_ioremap_resource()
@ 2019-07-03 14:56 Andy Shevchenko
  2019-07-03 14:56 ` [PATCH v1 2/4] pinctrl: cherryview: " Andy Shevchenko
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andy Shevchenko @ 2019-07-03 14:56 UTC (permalink / raw)
  To: Mika Westerberg, linux-gpio, Linus Walleij; +Cc: Andy Shevchenko

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>
---
 drivers/pinctrl/intel/pinctrl-baytrail.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/pinctrl/intel/pinctrl-baytrail.c b/drivers/pinctrl/intel/pinctrl-baytrail.c
index bfde1c710bd9..4fc4f9658484 100644
--- a/drivers/pinctrl/intel/pinctrl-baytrail.c
+++ b/drivers/pinctrl/intel/pinctrl-baytrail.c
@@ -1582,12 +1582,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);
 	}
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-29 21:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-03 14:56 [PATCH v1 1/4] pinctrl: baytrail: Use devm_platform_ioremap_resource() Andy Shevchenko
2019-07-03 14:56 ` [PATCH v1 2/4] pinctrl: cherryview: " Andy Shevchenko
2019-07-03 14:56 ` [PATCH v1 3/4] pinctrl: intel: " Andy Shevchenko
2019-07-03 14:56 ` [PATCH v1 4/4] pinctrl: merrifield: " Andy Shevchenko
2019-07-03 16:36 ` [PATCH v1 1/4] pinctrl: baytrail: " Mika Westerberg
2019-07-23 15:51   ` Andy Shevchenko
2019-07-28 22:06     ` Linus Walleij
2019-07-29  9:37       ` Andy Shevchenko
2019-07-29 21:25         ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).