mtd: nand: sunxi: Fix the non-polling case in sunxi_nfc_wait_events()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 7 Oct 2017 22:36:52 +0000 (22:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 09:08:35 +0000 (10:08 +0100)
commit293c98f15d048148a0130da293cc855721dd4fd8
tree27c0c5cb58623660fdd390e45bff2ff6b3db1e16
parentceec8374d790f55315deda0cd076b2a556a808c0
mtd: nand: sunxi: Fix the non-polling case in sunxi_nfc_wait_events()

[ Upstream commit 19649e2c16fbc94b664f7074ec4fa9f15292fdce ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/sunxi_nand.c