summaryrefslogtreecommitdiff
path: root/init/initramfs.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2019-10-23 11:26:34 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-11-02 14:36:33 +0000
commita7bddfe2dfce1d8859422124abe1964e0ecd386e (patch)
tree28d123087bb65e22e8f4ebde626370e31b930ff0 /init/initramfs.c
parentf8be8d1ede50a5918faeda82e1f1fb45e9431b54 (diff)
downloadlwn-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