mtd: mtd_nandecctest: make module_init() return appropriate errno
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 3 Sep 2012 12:59:59 +0000 (21:59 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:34:25 +0000 (15:34 +0100)
commitbb82477ebede3d0c37a502a899b68eb45fefca4f
treedf7352575d835ce21b1dcf210d1d50827fad6ad1
parent1f6edadcccfa6a213fd2bbe6f193a78925f8312a
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>
drivers/mtd/tests/mtd_nandecctest.c