aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/common/hid-sensors/hid-sensor-trigger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
index 12277e8bbd80..d4b790d18efb 100644
--- a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
+++ b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
@@ -56,6 +56,7 @@ void hid_sensor_remove_trigger(struct iio_dev *indio_dev)
56{ 56{
57 iio_trigger_unregister(indio_dev->trig); 57 iio_trigger_unregister(indio_dev->trig);
58 iio_trigger_free(indio_dev->trig); 58 iio_trigger_free(indio_dev->trig);
59 indio_dev->trig = NULL;
59} 60}
60EXPORT_SYMBOL(hid_sensor_remove_trigger); 61EXPORT_SYMBOL(hid_sensor_remove_trigger);
61 62