# Re: \[PATCH v4 01/15\] gpio: guard gpiochip\_irqchip\_add\_domain() with GPIOLIB\_IRQCHIP

- From: Linus Walleij \<hidden\>
- Date: 2021-03-09 16:21:47 
- List: linux-devicetree
- Page: https://ratatoskr.run/linux-devicetree/2021/03/6293973
- Thread: https://ratatoskr.run/linux-gpio/2021/03/6287993/t.md

```text
On Thu, Mar 4, 2021 at 9:57 AM Álvaro Fernández Rojas [ref] wrote:

> 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()")
> Signed-off-by: Álvaro Fernández Rojas <redacted>

Reviewed-by: Linus Walleij <redacted>

Yours,
Linus Walleij
```
