diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 6001ec96693c..676d963c20eb 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include @@ -1223,11 +1222,6 @@ struct gpio_device *gpio_device_find(const void *data, struct gpio_device *gdev; struct gpio_chip *gc; - /* - * Not yet but in the future the spinlock below will become a mutex. - * Annotate this function before anyone tries to use it in interrupt - * context like it happened with gpiochip_find(). - */ might_sleep(); guard(srcu)(&gpio_devices_srcu);