]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: Fix a couple error codes
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Apr 2017 08:15:46 +0000 (11:15 +0300)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 25 Apr 2017 12:18:39 +0000 (14:18 +0200)
commit70106ddaf31150a57dc00b3d7d5167f693b521ef
tree82a3e3ae0097c6fb61ad032c84ea084716f02a41
parent477544c62a84d3bacd9f90ba75ffc16c04d78071
mtd: nand: Fix a couple error codes

We accidentally return 1 on error instead of proper error codes.

Fixes: 07b23e3db9ed ("mtd: nand: Cleanup/rework the atmel_nand driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/atmel/nand-controller.c