mtd: powernv_flash: Don't treat OPAL_SUCCESS as an error
authorCyril Bur <[email protected]>
Fri, 3 Nov 2017 02:41:38 +0000 (13:41 +1100)
committerMichael Ellerman <[email protected]>
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 <[email protected]>
Acked-by: Boris Brezillon <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
drivers/mtd/devices/powernv_flash.c