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>
This commit is contained in:
Enric Balletbo i Serra 2017-03-24 18:44:03 +01:00 • committed by Jonathan Cameron
commit 754434c445