diff options
Diffstat (limited to 'kernel/drivers/iio/accel')
-rw-r--r-- | kernel/drivers/iio/accel/bmc150-accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/iio/accel/bmc150-accel.c b/kernel/drivers/iio/accel/bmc150-accel.c index 73e87739d..bf827d012 100644 --- a/kernel/drivers/iio/accel/bmc150-accel.c +++ b/kernel/drivers/iio/accel/bmc150-accel.c @@ -1465,7 +1465,7 @@ static void bmc150_accel_unregister_triggers(struct bmc150_accel_data *data, { int i; - for (i = from; i >= 0; i++) { + for (i = from; i >= 0; i--) { if (data->triggers[i].indio_trig) { iio_trigger_unregister(data->triggers[i].indio_trig); data->triggers[i].indio_trig = NULL; |