remarkable-linux/drivers/staging/iio/accel
Lars-Peter Clausen 67ad4e08dc staging:iio:sca3000: Do not return a error in remove function
In the Linux device driver model the remove callback is not allowed to fail and
the device will be removed regardless of the return value of the remove
callback. So if we abort in the remove function and do not free all resources we
will create a resource leak. Also all kinds of undefined behaviour are expected
to happen since the IIO device is still there while its parent is already gone.

The errors which the driver tries to handle in the remove function are
non-critical, so we can just ignore them and continue to free all resources and
remove the IIO device.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-09-22 10:20:30 +01:00
..
adis16201.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
adis16201_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
adis16201_ring.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
adis16201_trigger.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
adis16203.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
adis16203_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
adis16203_ring.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
adis16203_trigger.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
adis16204.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
adis16204_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
adis16204_ring.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
adis16204_trigger.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
adis16209.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
adis16209_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
adis16209_ring.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
adis16209_trigger.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
adis16220.h staging:iio:accel:adis16220 allocate tx and rx in state plus state via iio_priv 2011-06-28 14:39:35 -07:00
adis16220_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
adis16240.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
adis16240_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
adis16240_ring.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
adis16240_trigger.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
Kconfig staging:iio: gpio build dependency fixing 2011-10-17 15:25:28 -07:00
kxsd9.c staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
lis3l02dq.h staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
lis3l02dq_core.c staging:iio:lis3l02dq: Do not return a error in remove function 2012-09-22 10:20:11 +01:00
lis3l02dq_ring.c Merge 3.6-rc6 into staging-next 2012-09-16 17:17:25 -07:00
Makefile staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
sca3000.h staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
sca3000_core.c staging:iio:sca3000: Do not return a error in remove function 2012-09-22 10:20:30 +01:00
sca3000_ring.c staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00