Commit e9646f0f authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Walleij
Browse files

gpio: fix gpio-adp5588 build errors

The gpio-adp5588 driver uses interfaces that are provided by
GPIOLIB_IRQCHIP, so select that symbol in its Kconfig entry.

Fixes these build errors:

../drivers/gpio/gpio-adp5588.c: In function ‘adp5588_irq_handler’:
../drivers/gpio/gpio-adp5588.c:266:26: error: ‘struct gpio_chip’ has no member named ‘irq’
            dev->gpio_chip.irq.domain, gpio));
../drivers/gpio/gpio-adp5588.c: In function ‘adp5588_irq_setup’:
../drivers/gpio/gpio-adp5588.c:298:2: error: implicit declaration of function ‘gpiochip_irqchip_add_nested’ [-Werror=implicit-function-declaration]
  ret = gpiochip_irqchip_add_nested(&dev->gpio_chip,
../drivers/gpio/gpio-adp5588.c:307:2: error: implicit declaration of function ‘gpiochip_set_nested_irqchip’ [-Werror=implicit-function-declaration]

Fixes: 459773ae

 ("gpio: adp5588-gpio: support interrupt controller")
Reported-by: default avatarkbuild test robot <>
Signed-off-by: default avatarRandy Dunlap <>
Reviewed-by: default avatarBartosz Golaszewski <>
Acked-by: default avatarMichael Hennerich <>
Signed-off-by: default avatarLinus Walleij <>
parent a188339c
......@@ -822,6 +822,7 @@ config GPIO_ADP5588
config GPIO_ADP5588_IRQ
bool "Interrupt controller support for ADP5588"
depends on GPIO_ADP5588=y
Say yes here to enable the adp5588 to be used as an interrupt
controller. It requires the driver to be built in the kernel.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment