commit | 884cfd9023ce6afe8bcf181ec988d8516eb32bf0 | [log] [tgz] |
---|---|---|
author | Boris Brezillon <boris.brezillon@bootlin.com> | Mon Feb 12 22:03:09 2018 +0100 |
committer | Boris Brezillon <boris.brezillon@bootlin.com> | Thu Mar 15 18:21:07 2018 +0100 |
tree | f57f5eafe52a568ac90e25b64f8e6a0e9d37e993 | |
parent | dcba51bbb9e0cc7f80d36eb20a033a4dff2ce9cc [diff] |
mtd: Stop assuming mtd_erase() is asynchronous None of the mtd->_erase() implementations work in an asynchronous manner, so let's simplify MTD users that call mtd_erase(). All they need to do is check the value returned by mtd_erase() and assume that != 0 means failure. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Richard Weinberger <richard@nod.at>