Skip to content
Snippets Groups Projects
Commit 9c7d2469 authored by Álvaro Fernández Rojas's avatar Álvaro Fernández Rojas Committed by Linus Walleij
Browse files

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: 6a45b0e2 ("gpiolib: Introduce gpiochip_irqchip_add_domain()")
Suggested-by: default avatarMichael Walle <michael@walle.cc>
Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarMichael Walle <michael@walle.cc>
Acked-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20210324081923.20379-2-noltari@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a38fd874
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment