]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: Remove mtd_erase_callback() entirely
authorMarek Behún <marek.behun@nic.cz>
Tue, 5 Oct 2021 13:56:06 +0000 (15:56 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Sat, 23 Oct 2021 10:17:33 +0000 (15:47 +0530)
commit0d1ecc99cb59c2190257f7738f91db21f174dc02
treebd610819dcce9dd95ff9c8e43411c53986abbf31
parenta60397d219c2ddbceedfea4e121e303804d333d0
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>
15 files changed:
cmd/onenand.c
drivers/mtd/altera_qspi.c
drivers/mtd/cfi_mtd.c
drivers/mtd/mtdconcat.c
drivers/mtd/mtdcore.c
drivers/mtd/mtdpart.c
drivers/mtd/nand/raw/nand_base.c
drivers/mtd/onenand/onenand_base.c
drivers/mtd/spi/sf_mtd.c
drivers/mtd/spi/spi-nor-core.c
drivers/mtd/ubi/io.c
env/onenand.c
fs/yaffs2/yaffs_mtdif.c
include/linux/mtd/mtd.h
include/nand.h