We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f4bf17 commit 89ad556Copy full SHA for 89ad556
drivers/gpio/gpiolib.c
@@ -2745,10 +2745,12 @@ static inline void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gpiochip)
2745
*/
2746
int gpiochip_generic_request(struct gpio_chip *chip, unsigned offset)
2747
{
2748
- if (!list_empty(&chip->gpiodev->pin_ranges))
2749
- return pinctrl_gpio_request(chip->gpiodev->base + offset);
+#ifdef CONFIG_PINCTRL
+ if (list_empty(&chip->gpiodev->pin_ranges))
2750
+ return 0;
2751
+#endif
2752
- return 0;
2753
+ return pinctrl_gpio_request(chip->gpiodev->base + offset);
2754
}
2755
EXPORT_SYMBOL_GPL(gpiochip_generic_request);
2756
0 commit comments