summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2012-09-03 16:59:59 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-09-29 18:34:25 +0400
commitbb82477ebede3d0c37a502a899b68eb45fefca4f (patch)
treedf7352575d835ce21b1dcf210d1d50827fad6ad1 /drivers/mtd
parent1f6edadcccfa6a213fd2bbe6f193a78925f8312a (diff)
downloadlinux-bb82477ebede3d0c37a502a899b68eb45fefca4f.tar.xz
mtd: mtd_nandecctest: make module_init() return appropriate errno
Return -EINVAL instead of -1 (-EPERM) when test fails. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/tests/mtd_nandecctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/mtd_nandecctest.c b/drivers/mtd/tests/mtd_nandecctest.c
index 1051b4814daa..128547c5bd55 100644
--- a/drivers/mtd/tests/mtd_nandecctest.c
+++ b/drivers/mtd/tests/mtd_nandecctest.c
@@ -51,7 +51,7 @@ static int nand_ecc_test(const size_t size)
print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 4,
error_data, size, false);
- return -1;
+ return -EINVAL;
}
#else