mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] gpio: mt7621: add OF_GPIO dependency
@ 2018-07-10 15:18 Arnd Bergmann
  2018-07-10 15:18 ` [PATCH 2/2] staging: mt7621-gpio: remove driver Arnd Bergmann
  2018-07-13  7:26 ` [PATCH 1/2] gpio: mt7621: add OF_GPIO dependency Linus Walleij
  0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2018-07-10 15:18 UTC (permalink / raw)
  To: Linus Walleij, Greg Kroah-Hartman
  Cc: Sergio Paracuellos, Arnd Bergmann, Matthias Brugger, linux-gpio,
	linux-kernel, linux-arm-kernel, linux-mediatek

Compile-testing the driver fails unless OF_GPIO is enabled:

drivers/gpio/gpio-mt7621.c: In function 'mediatek_gpio_bank_probe':
drivers/gpio/gpio-mt7621.c:228:10: error: 'struct gpio_chip' has no member named 'of_node'

Fixes: 4ba9c3afda41 ("gpio: mt7621: Add a driver for MT7621")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/gpio/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 836aa2173e44..7429b30e61b0 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -362,6 +362,7 @@ config GPIO_MPC8XXX
 config GPIO_MT7621
 	bool "Mediatek MT7621 GPIO Support"
 	depends on SOC_MT7620 || SOC_MT7621 || COMPILE_TEST
+	depends on OF_GPIO
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help
-- 
2.9.0


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

end of thread, other threads:[~2018-07-13  7:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-10 15:18 [PATCH 1/2] gpio: mt7621: add OF_GPIO dependency Arnd Bergmann
2018-07-10 15:18 ` [PATCH 2/2] staging: mt7621-gpio: remove driver Arnd Bergmann
2018-07-10 15:30   ` Greg Kroah-Hartman
2018-07-13  7:26 ` [PATCH 1/2] gpio: mt7621: add OF_GPIO dependency Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome