Skip to content

Commit 274fd5f

Browse files
author
Bartosz Golaszewski
committed
gpiolib: remove unneeded #ifdef
We are already within another `#ifdef CONFIG_GPIOLIB_IRQCHIP` in gpiochip_to_irq() so there's no need for another guard. Remove it. Acked-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/20250519-gpio-irq-kconfig-fixes-v1-3-fe6ba1c6116d@linaro.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 8da238b commit 274fd5f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/gpio/gpiolib.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,15 +1888,13 @@ static int gpiochip_to_irq(struct gpio_chip *gc, unsigned int offset)
18881888
{
18891889
struct irq_domain *domain = gc->irq.domain;
18901890

1891-
#ifdef CONFIG_GPIOLIB_IRQCHIP
18921891
/*
18931892
* Avoid race condition with other code, which tries to lookup
18941893
* an IRQ before the irqchip has been properly registered,
18951894
* i.e. while gpiochip is still being brought up.
18961895
*/
18971896
if (!gc->irq.initialized)
18981897
return -EPROBE_DEFER;
1899-
#endif
19001898

19011899
if (!gpiochip_irqchip_irq_valid(gc, offset))
19021900
return -ENXIO;

0 commit comments

Comments
 (0)