summaryrefslogtreecommitdiff
path: root/include/nand.h
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-10-05 16:56:06 +0300
committerJagan Teki <jagan@amarulasolutions.com>2021-10-23 13:17:33 +0300
commit0d1ecc99cb59c2190257f7738f91db21f174dc02 (patch)
treebd610819dcce9dd95ff9c8e43411c53986abbf31 /include/nand.h
parenta60397d219c2ddbceedfea4e121e303804d333d0 (diff)
downloadu-boot-0d1ecc99cb59c2190257f7738f91db21f174dc02.tar.xz
mtd: Remove mtd_erase_callback() entirely
The original purpose of mtd_erase_callback() in Linux at the time it was imported to U-Boot, was to inform the caller that erasing is done (since it was an asynchronous operation). All supplied callback methods in U-Boot do nothing, but the mtd_erase_callback() function was (until previous patch) grossly abused in U-Boot's mtdpart implementation for completely different purpose. Since we got rid of the abusement, remove the mtd_erase_callback() function and the .callback member from struct erase_info entirely, in order to avoid such problems in the future. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/nand.h b/include/nand.h
index 75c605193a..09dbda4e81 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -69,7 +69,6 @@ static inline int nand_erase(struct mtd_info *info, loff_t off, size_t size)
instr.mtd = info;
instr.addr = off;
instr.len = size;
- instr.callback = 0;
return mtd_erase(info, &instr);
}