]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: sunxi: Fix the non-polling case in sunxi_nfc_wait_events()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 6 Jan 2017 09:42:05 +0000 (10:42 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 6 Feb 2017 08:35:14 +0000 (09:35 +0100)
commit19649e2c16fbc94b664f7074ec4fa9f15292fdce
tree426371000f0207a667be3fccfaac9f0cb1e14435
parent656441478ed55d960df5f3ccdf5a0f8c61dfd0b3
mtd: nand: sunxi: Fix the non-polling case in sunxi_nfc_wait_events()

wait_for_completion_timeout() returns 0 if a timeout occurred, 1
otherwise. Fix the sunxi_nfc_wait_events() accordingly.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c