remarkable-linux/drivers/staging/iio/gyro
Lars-Peter Clausen bea3e8a31f staging:iio:adis16200: 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 error which the driver tries to handle in the remove function is
non-critical, so we can just ignore it 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:17:17 +01:00
..
adis16060_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
adis16080_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
adis16130_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
adis16260.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
adis16260_core.c staging:iio:adis16200: Do not return a error in remove function 2012-09-22 10:17:17 +01:00
adis16260_platform_data.h staging: iio: adis16260 add suppport for adis16255 and adis16250. 2010-11-29 11:04:48 -08:00
adis16260_ring.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
adis16260_trigger.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
adxrs450.h staging: iio: Fix typo in iio 2012-05-08 16:04:12 -07:00
adxrs450_core.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
Kconfig iio: gyro: ADXRS450: Add support for ADXRS453 Digital Gyroscope 2011-12-16 10:55:02 -08:00
Makefile staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00