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)
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>

No differences found