staging:iio: fix removal path to allow correct freeing.
authorJonathan Cameron <jic23@cam.ac.uk>
Fri, 14 Oct 2011 13:46:58 +0000 (14:46 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 17 Oct 2011 22:34:53 +0000 (15:34 -0700)
Fix a dumb lack of consideration of the effect of combining
the iio_device_unregister and iio_free_device calls into
one.  There is no valid place to free some of the sysfs
array elements.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found