summaryrefslogtreecommitdiff
path: root/crypto/sha256_generic.c
diff options
context:
space:
mode:
authorBoris Brezillon <bbrezillon@kernel.org>2019-01-02 15:36:53 +0100
committerBoris Brezillon <bbrezillon@kernel.org>2019-01-07 14:06:22 +0100
commit19e16fb4f319b84b3220e98abf726218beba8c34 (patch)
tree5616fff2dbeaad693158661df45b56273c6ca28c /crypto/sha256_generic.c
parentbfeffd155283772bbe78c6a05dec7c0128ee500c (diff)
downloadlwn-19e16fb4f319b84b3220e98abf726218beba8c34.tar.gz
lwn-19e16fb4f319b84b3220e98abf726218beba8c34.zip
mtd: Fix the check on nvmem_register() ret code
Commit 20167b70c894 ("nvmem: use EOPNOTSUPP instead of ENOSYS") changed the nvmem_register() ret code from ENOSYS to EOPNOTSUPP when CONFIG_NVMEM is not enabled, but the check in mtd_nvmem_add() was not adjusted accordingly. Cc: Bartosz Golaszewski <brgl@bgdev.pl> Cc: Alban Bedel <albeu@free.fr> Fixes: c4dfa25ab307 ("mtd: add support for reading MTD devices via the nvmem API") Reported-by: kernel test robot <rong.a.chen@intel.com> Signed-off-by: Boris Brezillon <bbrezillon@kernel.org> Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Diffstat (limited to 'crypto/sha256_generic.c')
0 files changed, 0 insertions, 0 deletions