diff --git a/drivers/staging/iio/trigger.h b/drivers/staging/iio/trigger.h index 325e086e9e68..234c77433434 100644 --- a/drivers/staging/iio/trigger.h +++ b/drivers/staging/iio/trigger.h @@ -104,14 +104,14 @@ static inline struct iio_trigger *to_iio_trigger(struct device *d) static inline void iio_put_trigger(struct iio_trigger *trig) { - put_device(&trig->dev); module_put(trig->ops->owner); + put_device(&trig->dev); }; static inline void iio_get_trigger(struct iio_trigger *trig) { - __module_get(trig->ops->owner); get_device(&trig->dev); + __module_get(trig->ops->owner); }; /**