mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
gpiolib: remove leftover spinlock bits
We no longer use any spinlocks in gpiolib.c. Stop including linux/spinlock.h and remove an outdated comment. Link: https://lore.kernel.org/r/20241024191532.78304-1-brgl@bgdev.pl Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
1f4a640e9a
commit
01aab9fd0a
|
|
@ -24,7 +24,6 @@
|
|||
#include <linux/pinctrl/consumer.h>
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/srcu.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user