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>
This commit is contained in:
4
env/onenand.c
vendored
4
env/onenand.c
vendored
@@ -73,9 +73,7 @@ static int env_onenand_save(void)
|
||||
#endif
|
||||
loff_t env_addr = CONFIG_ENV_ADDR;
|
||||
size_t retlen;
|
||||
struct erase_info instr = {
|
||||
.callback = NULL,
|
||||
};
|
||||
struct erase_info instr = {};
|
||||
|
||||
ret = env_export(&env_new);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user