mtd: powernv_flash: Don't treat OPAL_SUCCESS as an error
authorCyril Bur <cyrilbur@gmail.com>
Fri, 3 Nov 2017 02:41:38 +0000 (13:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 09:20:26 +0000 (20:20 +1100)
commit25ee52e66949b6e5f041aedff4db9a7d84a6fb2b
tree40703bc32546880bd5ff70fb2cd392abd47c73e7
parent44e2aa2b16a872fa8aa4901b3793132e6cfd293a
mtd: powernv_flash: Don't treat OPAL_SUCCESS as an error

While this driver expects to interact asynchronously, OPAL is well
within its rights to return OPAL_SUCCESS to indicate that the operation
completed without the need for a callback. We shouldn't treat
OPAL_SUCCESS as an error rather we should wrap up and return promptly to
the caller.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/mtd/devices/powernv_flash.c