remarkable-linux/drivers/staging/iio/meter
Lars-Peter Clausen e854bcc938 staging:iio:ade7759: 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:19:57 +01:00
..
ade7753.c staging:iio:ade7753: Do not return a error in remove function 2012-09-22 10:18:10 +01:00
ade7753.h staging:iio:meter:ade7753 allocate chip state with iio_dev; allocate buffers within state 2011-06-28 14:39:48 -07:00
ade7754.c staging:iio:ade7754: Do not return a error in remove function 2012-09-22 10:18:25 +01:00
ade7754.h staging:iio:meter:ade7754: allocate state with iio_dev and buffers in state. 2011-06-28 14:39:48 -07:00
ade7758.h staging:iio: Constify static iio_chan_spec arrays 2012-08-14 20:27:42 +01:00
ade7758_core.c staging:iio:ade7758: Do not return a error in remove function 2012-09-22 10:18:42 +01:00
ade7758_ring.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
ade7758_trigger.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ade7759.c staging:iio:ade7759: Do not return a error in remove function 2012-09-22 10:19:57 +01:00
ade7759.h staging:iio:meter:ade7759: allocate state with iio_dev 2011-06-28 14:39:51 -07:00
ade7854-i2c.c staging:iio:meter: Use dev_to_iio_dev() 2012-05-14 13:39:22 -07:00
ade7854-spi.c staging:iio: Add missing __devinit and __devexit annotations 2012-08-27 18:58:11 +01:00
ade7854.c staging:iio:meter: Use dev_to_iio_dev() 2012-05-14 13:39:22 -07:00
ade7854.h staging:iio:meter:ade7854: Allocate buffers in state and state with iio_dev. 2011-06-28 14:39:49 -07:00
Kconfig staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
Makefile staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
meter.h IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00