From: Nishanth Aravamudan Date: Thu, 2 Jul 2015 22:38:48 +0000 (-0700) Subject: crypto: nx - nx842_OF_upd_status should return ENODEV if device is not 'okay' X-Git-Tag: omap-for-v4.3/fixes-merge-window~29^2~164 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa9a9a084a2153095d0433188be232b0127ab23c;p=pandora-kernel.git crypto: nx - nx842_OF_upd_status should return ENODEV if device is not 'okay' The current documention mentions explicitly that EINVAL should be returned if the device is not available, but nx842_OF_upd_status() always returns 0. However, nx842_probe() specifically checks for non-ENODEV returns from nx842_of_upd() (which in turn calls nx842_OF_upd_status()) and emits an extra error in that case. It seems like the proper return code of a disabled device is ENODEV. Signed-off-by: Nishanth Aravamudan Signed-off-by: Herbert Xu --- Reading git-diff-tree failed