]> git.karo-electronics.de Git - linux-beck.git/commit
staging:iio:fix using iio_priv or iio_dev after iio_unregister_device
authorJonathan Cameron <jic23@cam.ac.uk>
Tue, 30 Aug 2011 11:41:18 +0000 (12:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:00:29 +0000 (16:00 -0700)
commit3e39440789adef103422ce201538b4da8745fe8e
tree3cf742695f53ec91f0ff87ab3a9db513383c53ae
parentacc131fa9f9d81b2a031ab1e7115856ba33e057d
staging:iio:fix using iio_priv or iio_dev after iio_unregister_device

This includes calling iio_free_device as that should only be called
before the device has been registered.

Also one case of iio_free_device being called on a registered device.

This has been pulled out of the reworking attributes patch.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 files changed:
drivers/staging/iio/accel/adis16201_core.c
drivers/staging/iio/accel/adis16203_core.c
drivers/staging/iio/accel/adis16204_core.c
drivers/staging/iio/accel/adis16209_core.c
drivers/staging/iio/accel/adis16240_core.c
drivers/staging/iio/adc/ad7291.c
drivers/staging/iio/adc/ad7314.c
drivers/staging/iio/adc/ad7816.c
drivers/staging/iio/adc/adt7310.c
drivers/staging/iio/adc/adt75.c
drivers/staging/iio/addac/adt7316.c
drivers/staging/iio/dac/ad5624r_spi.c
drivers/staging/iio/gyro/adis16260_core.c
drivers/staging/iio/magnetometer/ak8975.c
drivers/staging/iio/resolver/ad2s1210.c