diff options
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/trigger/iio-trig-sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c index 254c7e906127..3dfab2bc6d69 100644 --- a/drivers/iio/trigger/iio-trig-sysfs.c +++ b/drivers/iio/trigger/iio-trig-sysfs.c | |||
@@ -135,6 +135,7 @@ static int iio_sysfs_trigger_probe(int id) | |||
135 | struct iio_sysfs_trig *t; | 135 | struct iio_sysfs_trig *t; |
136 | int ret; | 136 | int ret; |
137 | bool foundit = false; | 137 | bool foundit = false; |
138 | |||
138 | mutex_lock(&iio_sysfs_trig_list_mut); | 139 | mutex_lock(&iio_sysfs_trig_list_mut); |
139 | list_for_each_entry(t, &iio_sysfs_trig_list, l) | 140 | list_for_each_entry(t, &iio_sysfs_trig_list, l) |
140 | if (id == t->id) { | 141 | if (id == t->id) { |
@@ -185,6 +186,7 @@ static int iio_sysfs_trigger_remove(int id) | |||
185 | { | 186 | { |
186 | bool foundit = false; | 187 | bool foundit = false; |
187 | struct iio_sysfs_trig *t; | 188 | struct iio_sysfs_trig *t; |
189 | |||
188 | mutex_lock(&iio_sysfs_trig_list_mut); | 190 | mutex_lock(&iio_sysfs_trig_list_mut); |
189 | list_for_each_entry(t, &iio_sysfs_trig_list, l) | 191 | list_for_each_entry(t, &iio_sysfs_trig_list, l) |
190 | if (id == t->id) { | 192 | if (id == t->id) { |