aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/trigger/iio-trig-sysfs.c')
-rw-r--r--drivers/iio/trigger/iio-trig-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c
index 3dfab2bc6d69..202e8b89caf2 100644
--- a/drivers/iio/trigger/iio-trig-sysfs.c
+++ b/drivers/iio/trigger/iio-trig-sysfs.c
@@ -174,7 +174,7 @@ static int iio_sysfs_trigger_probe(int id)
174 return 0; 174 return 0;
175 175
176out2: 176out2:
177 iio_trigger_put(t->trig); 177 iio_trigger_free(t->trig);
178free_t: 178free_t:
179 kfree(t); 179 kfree(t);
180out1: 180out1: