1 From f5e654ab2111a79b7d18fb3fa7028473effcc1f2 Mon Sep 17 00:00:00 2001
2 From: Randy Dunlap <rdunlap@infradead.org>
3 Date: Thu, 23 May 2019 15:00:41 -0700
4 Subject: gpio: fix gpio-adp5588 build errors
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 [ Upstream commit e9646f0f5bb62b7d43f0968f39d536cfe7123b53 ]
11 The gpio-adp5588 driver uses interfaces that are provided by
12 GPIOLIB_IRQCHIP, so select that symbol in its Kconfig entry.
14 Fixes these build errors:
16 ../drivers/gpio/gpio-adp5588.c: In function ‘adp5588_irq_handler’:
17 ../drivers/gpio/gpio-adp5588.c:266:26: error: ‘struct gpio_chip’ has no member named ‘irq’
18 dev->gpio_chip.irq.domain, gpio));
20 ../drivers/gpio/gpio-adp5588.c: In function ‘adp5588_irq_setup’:
21 ../drivers/gpio/gpio-adp5588.c:298:2: error: implicit declaration of function ‘gpiochip_irqchip_add_nested’ [-Werror=implicit-function-declaration]
22 ret = gpiochip_irqchip_add_nested(&dev->gpio_chip,
24 ../drivers/gpio/gpio-adp5588.c:307:2: error: implicit declaration of function ‘gpiochip_set_nested_irqchip’ [-Werror=implicit-function-declaration]
25 gpiochip_set_nested_irqchip(&dev->gpio_chip,
28 Fixes: 459773ae8dbb ("gpio: adp5588-gpio: support interrupt controller")
29 Reported-by: kbuild test robot <lkp@intel.com>
30 Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
31 Cc: linux-gpio@vger.kernel.org
32 Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
33 Acked-by: Michael Hennerich <michael.hennerich@analog.com>
34 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
35 Signed-off-by: Sasha Levin <sashal@kernel.org>
37 drivers/gpio/Kconfig | 1 +
38 1 file changed, 1 insertion(+)
40 diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
41 index 4f52c3a8ec99..ed51221621a5 100644
42 --- a/drivers/gpio/Kconfig
43 +++ b/drivers/gpio/Kconfig
44 @@ -784,6 +784,7 @@ config GPIO_ADP5588
45 config GPIO_ADP5588_IRQ
46 bool "Interrupt controller support for ADP5588"
47 depends on GPIO_ADP5588=y
48 + select GPIOLIB_IRQCHIP
50 Say yes here to enable the adp5588 to be used as an interrupt
51 controller. It requires the driver to be built in the kernel.