diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-07-23 07:47:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-08-03 18:41:18 +0100 |
commit | 6b7e0a9cd42a24e4e2c2a037773a12c375e25b69 (patch) | |
tree | d12b076cc4a0c18c9256e4a719b967c73ff1d200 /drivers/iio/accel/st_accel_core.c | |
parent | 4ee309337e100042c1623c301a4b8ad2487b6330 (diff) | |
download | linux-stable-6b7e0a9cd42a24e4e2c2a037773a12c375e25b69.tar.gz linux-stable-6b7e0a9cd42a24e4e2c2a037773a12c375e25b69.tar.bz2 linux-stable-6b7e0a9cd42a24e4e2c2a037773a12c375e25b69.zip |
iio: accel: st_accel: Use devm_iio_device_alloc
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/st_accel_core.c')
-rw-r--r-- | drivers/iio/accel/st_accel_core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c index aef3c9be7366..1458343f6f3f 100644 --- a/drivers/iio/accel/st_accel_core.c +++ b/drivers/iio/accel/st_accel_core.c @@ -517,7 +517,6 @@ void st_accel_common_remove(struct iio_dev *indio_dev) st_sensors_deallocate_trigger(indio_dev); st_accel_deallocate_ring(indio_dev); } - iio_device_free(indio_dev); } EXPORT_SYMBOL(st_accel_common_remove); |