aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/lpddr/lpddr2_nvm.c
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2018-02-12 21:03:09 +0000
committerBoris Brezillon <[email protected]>2018-03-15 17:21:07 +0000
commit884cfd9023ce6afe8bcf181ec988d8516eb32bf0 (patch)
treef57f5eafe52a568ac90e25b64f8e6a0e9d37e993 /drivers/mtd/lpddr/lpddr2_nvm.c
parentmtd: Get rid of unused fields in struct erase_info (diff)
downloadkernel-884cfd9023ce6afe8bcf181ec988d8516eb32bf0.tar.gz
kernel-884cfd9023ce6afe8bcf181ec988d8516eb32bf0.zip
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 <[email protected]> Reviewed-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr2_nvm.c')
0 files changed, 0 insertions, 0 deletions