]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.19.54/gpio-fix-gpio-adp5588-build-errors.patch
Linux 4.19.54
[thirdparty/kernel/stable-queue.git] / releases / 4.19.54 / gpio-fix-gpio-adp5588-build-errors.patch
CommitLineData
a15a8890
SL
1From f5e654ab2111a79b7d18fb3fa7028473effcc1f2 Mon Sep 17 00:00:00 2001
2From: Randy Dunlap <rdunlap@infradead.org>
3Date: Thu, 23 May 2019 15:00:41 -0700
4Subject: gpio: fix gpio-adp5588 build errors
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9[ Upstream commit e9646f0f5bb62b7d43f0968f39d536cfe7123b53 ]
10
11The gpio-adp5588 driver uses interfaces that are provided by
12GPIOLIB_IRQCHIP, so select that symbol in its Kconfig entry.
13
14Fixes these build errors:
15
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));
19 ^
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,
23 ^
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,
26 ^
27
28Fixes: 459773ae8dbb ("gpio: adp5588-gpio: support interrupt controller")
29Reported-by: kbuild test robot <lkp@intel.com>
30Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
31Cc: linux-gpio@vger.kernel.org
32Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
33Acked-by: Michael Hennerich <michael.hennerich@analog.com>
34Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
35Signed-off-by: Sasha Levin <sashal@kernel.org>
36---
37 drivers/gpio/Kconfig | 1 +
38 1 file changed, 1 insertion(+)
39
40diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
41index 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
49 help
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.
52--
532.20.1
54