linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpio: gpio-reg: fix build
@ 2017-12-06 17:37 Grygorii Strashko
  2017-12-07  8:56 ` Linus Walleij
  2017-12-24 15:49 ` Geert Uytterhoeven
  0 siblings, 2 replies; 6+ messages in thread
From: Grygorii Strashko @ 2017-12-06 17:37 UTC (permalink / raw)
  To: Linus Walleij
  Cc: linux-gpio, linux-kernel, Thierry Reding, Grygorii Strashko,
	Russell King - ARM Linux

Revert changes introduced by commit f0fbe7bce733 ("gpio: Move irqdomain
into struct gpio_irq_chip") as they are not aplicable to this driver.

Cc: Russell King - ARM Linux <linux@armlinux.org.uk>
Fixes: f0fbe7bce733 ("gpio: Move irqdomain into struct gpio_irq_chip")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
Sorry, for inconvenience, but this driver has no users in lkml and
it can't be enabled through defconfig - only selected, so builds can't
be verified in standard way.

 drivers/gpio/gpio-reg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-reg.c b/drivers/gpio/gpio-reg.c
index 23e771d..e85903e 100644
--- a/drivers/gpio/gpio-reg.c
+++ b/drivers/gpio/gpio-reg.c
@@ -103,8 +103,8 @@ static int gpio_reg_to_irq(struct gpio_chip *gc, unsigned offset)
 	struct gpio_reg *r = to_gpio_reg(gc);
 	int irq = r->irqs[offset];
 
-	if (irq >= 0 && r->irq.domain)
-		irq = irq_find_mapping(r->irq.domain, irq);
+	if (irq >= 0 && r->irqdomain)
+		irq = irq_find_mapping(r->irqdomain, irq);
 
 	return irq;
 }
-- 
2.10.5


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

end of thread, other threads:[~2017-12-24 18:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-06 17:37 [PATCH] gpio: gpio-reg: fix build Grygorii Strashko
2017-12-07  8:56 ` Linus Walleij
2017-12-24 15:49 ` Geert Uytterhoeven
2017-12-24 15:56   ` Russell King - ARM Linux
2017-12-24 17:44     ` Linus Walleij
2017-12-24 17:59       ` Russell King - ARM Linux

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).