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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 8da238b commit 274fd5f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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)