diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2012-09-30 23:04:40 +0200 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-10-08 10:31:26 +0000 |
commit | 3f8ca97daf01966f0d6aaabf64162d6e09c3b744 (patch) | |
tree | f58735a1379d7da73001c0b0a4e531b7d9ab7b65 /src/flash | |
parent | 9e001244da2a2c472038ce1af0df32cfb2329569 (diff) |
dsp5680xx_flash: Remove unused flash bank structure
Change-Id: I947b6730b3741a71303e440daefa4fcf583cb9cf
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/867
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/nor/dsp5680xx_flash.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/flash/nor/dsp5680xx_flash.c b/src/flash/nor/dsp5680xx_flash.c index eb2f3e1b..62df9ce3 100644 --- a/src/flash/nor/dsp5680xx_flash.c +++ b/src/flash/nor/dsp5680xx_flash.c @@ -45,10 +45,6 @@ #include <target/algorithm.h> #include <target/dsp5680xx.h> -struct dsp5680xx_flash_bank { - struct working_area *write_algorithm; -}; - static int dsp5680xx_build_sector_list(struct flash_bank *bank) { uint32_t offset = HFM_FLASH_BASE_ADDR; @@ -71,13 +67,8 @@ static int dsp5680xx_build_sector_list(struct flash_bank *bank) /* flash bank dsp5680xx 0 0 0 0 <target#> */ FLASH_BANK_COMMAND_HANDLER(dsp5680xx_flash_bank_command) { - struct dsp5680xx_flash_bank *nbank; - - nbank = malloc(sizeof(struct dsp5680xx_flash_bank)); - bank->base = HFM_FLASH_BASE_ADDR; bank->size = HFM_SIZE_BYTES; /* top 4k not accessible */ - bank->driver_priv = nbank; bank->num_sectors = HFM_SECTOR_COUNT; dsp5680xx_build_sector_list(bank); |