From: Santhosh Pai Date: Mon, 29 Jun 2015 09:44:03 +0000 (+0100) Subject: staging: Comedi: comedi_fops: Fixed the return error code X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~691 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90e6f51da718fc982eafd3dd7d6c78b378f67136;p=pandora-kernel.git staging: Comedi: comedi_fops: Fixed the return error code This patch fixes the checkpatch.pl warning: WARNING: ENOSYS means 'invalid syscall nr' and nothing else try_module_get fails when the reference count of the module is not allowed to be incremented ,and hence -ENXIO is returned indicating no device or address. [IA - combined two of santhosh's changes to the error return value!] Signed-off-by: santhosh pai Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed