diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2019-10-23 11:26:34 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-11-02 14:36:33 +0000 |
commit | a7bddfe2dfce1d8859422124abe1964e0ecd386e (patch) | |
tree | 28d123087bb65e22e8f4ebde626370e31b930ff0 /init/initramfs.c | |
parent | f8be8d1ede50a5918faeda82e1f1fb45e9431b54 (diff) | |
download | lwn-a7bddfe2dfce1d8859422124abe1964e0ecd386e.tar.gz lwn-a7bddfe2dfce1d8859422124abe1964e0ecd386e.zip |
iio: dln2-adc: fix iio_triggered_buffer_postenable() position
The iio_triggered_buffer_postenable() hook should be called first to
attach the poll function. The iio_triggered_buffer_predisable() hook is
called last (as is it should).
This change moves iio_triggered_buffer_postenable() to be called first. It
adds iio_triggered_buffer_predisable() on the error paths of the postenable
hook.
For the predisable hook, some code-paths have been changed to make sure
that the iio_triggered_buffer_predisable() hook gets called in case there
is an error before it.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'init/initramfs.c')
0 files changed, 0 insertions, 0 deletions