From: Lars-Peter Clausen Date: Fri, 4 Oct 2013 11:06:00 +0000 (+0100) Subject: iio: Return -ENODEV for file operations if the device has been unregistered X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~196^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f18e7a068a0a31250cdb251810f8f6224931c3f5;p=pandora-kernel.git iio: Return -ENODEV for file operations if the device has been unregistered If the IIO device has been unregistered return -ENODEV for any further file operations like read() and ioctl(). This avoids userspace being able to grab new references to the device. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed