gpio: guard gpiochip_irqchip_add_domain() with GPIOLIB_IRQCHIP
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 24 Mar 2021 08:19:02 +0000 (09:19 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 Mar 2021 10:20:07 +0000 (12:20 +0200)
commit9c7d24693d864f90b27aad5d15fbfe226c02898b
treee6bb89eeeda4c5b0807ae97ceecaaa7ff72c5623
parenta38fd8748464831584a19438cbb3082b5a2dab15
gpio: guard gpiochip_irqchip_add_domain() with GPIOLIB_IRQCHIP

The current code doesn't check if GPIOLIB_IRQCHIP is enabled, which results in
a compilation error when trying to build gpio-regmap if CONFIG_GPIOLIB_IRQCHIP
isn't enabled.

Fixes: 6a45b0e2589f ("gpiolib: Introduce gpiochip_irqchip_add_domain()")
Suggested-by: Michael Walle <michael@walle.cc>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Michael Walle <michael@walle.cc>
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20210324081923.20379-2-noltari@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/gpio/driver.h