Skip to content
Snippets Groups Projects
Commit d2089dba authored by zwelch's avatar zwelch
Browse files

unsik Kim <donari75@gmail.com>:

Remove unused mflash driver 'prove' field.


git-svn-id: svn://svn.berlios.de/openocd/trunk@1929 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 2caf8655
No related branches found
No related tags found
No related merge requests found
......@@ -358,8 +358,6 @@ static int mg_dsk_drv_info(void)
static int mg_mflash_probe(void)
{
mflash_bank->proved = 0;
mg_init_gpio();
LOG_INFO("reset mflash");
......@@ -387,8 +385,6 @@ static int mg_mflash_probe(void)
if (mg_dsk_drv_info() != ERROR_OK)
return ERROR_FAIL;
mflash_bank->proved = 1;
return ERROR_OK;
}
......@@ -678,10 +674,6 @@ static int mg_write_cmd(struct command_context_s *cmd_ctx, char *cmd, char **arg
address = strtoul(args[2], NULL, 0);
if (! mflash_bank->proved ) {
mg_mflash_probe();
}
if (fileio_open(&fileio, args[1], FILEIO_READ, FILEIO_BINARY) != ERROR_OK) {
return ERROR_FAIL;
}
......@@ -730,10 +722,6 @@ static int mg_dump_cmd(struct command_context_s *cmd_ctx, char *cmd, char **args
address = strtoul(args[2], NULL, 0);
size = strtoul(args[3], NULL, 0);
if (! mflash_bank->proved ) {
mg_mflash_probe();
}
if (fileio_open(&fileio, args[1], FILEIO_WRITE, FILEIO_BINARY) != ERROR_OK) {
return ERROR_FAIL;
}
......
......@@ -131,8 +131,6 @@ typedef struct mflash_bank_s
mflash_gpio_drv_t *gpio_drv;
target_t *target;
mg_drv_info_t *drv_info;
u8 proved;
} mflash_bank_t;
extern int mflash_register_commands(struct command_context_s *cmd_ctx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment