This can result in wrong reference count for trigger device, leave the binding to user space via current_trigger sysfs entry. Refer to http://www.spinics.net/lists/linux-iio/msg13669.html for discussion with Jonathan. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx> --- drivers/staging/iio/meter/ade7758_trigger.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/iio/meter/ade7758_trigger.c b/drivers/staging/iio/meter/ade7758_trigger.c index ea01b8f..3a98627 100644 --- a/drivers/staging/iio/meter/ade7758_trigger.c +++ b/drivers/staging/iio/meter/ade7758_trigger.c @@ -84,8 +84,6 @@ int ade7758_probe_trigger(struct iio_dev *indio_dev) iio_trigger_set_drvdata(st->trig, indio_dev); ret = iio_trigger_register(st->trig); - /* select default trigger */ - indio_dev->trig = st->trig; if (ret) goto error_free_irq; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html