iio: cros_ec_sensors: Use devm to setup the triggered buffer.
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 24 Mar 2017 17:44:03 +0000 (18:44 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 25 Mar 2017 15:08:29 +0000 (15:08 +0000)
commit754434c445dafe79d55304a698c231ecbcc046d7
tree5dfc4e120f326e5a4b5d8297e3bad76218245067
parent48ba7c3c0b37363d9ddca3354ca503ad721e14dc
iio: cros_ec_sensors: Use devm to setup the triggered buffer.

Use resourced managed function devm_iio_triggered_buffer_setup
to make error path simpler and be able to get rid of the remove
function.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c