From: Jonathan Cameron Date: Tue, 30 Aug 2011 11:41:18 +0000 (+0100) Subject: staging:iio:fix using iio_priv or iio_dev after iio_unregister_device X-Git-Tag: v3.2-rc1~169^2^2~733 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e39440789adef103422ce201538b4da8745fe8e;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed