diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2018-02-15 10:25:50 +0100 |
---|---|---|
committer | Matthias Welwarsky <matthias@welwarsky.de> | 2018-04-04 20:14:18 +0100 |
commit | 7690a74b094347ec393c280414a182b7361d7b17 (patch) | |
tree | 9772f601eaeca6038e74a04ee9c07ac507ab3d7e /src/flash/nor/mrvlqspi.c | |
parent | 3d3b45af465f6dcfc85ea69cc10a719bc3b2851c (diff) | |
download | riscv-openocd-7690a74b094347ec393c280414a182b7361d7b17.zip riscv-openocd-7690a74b094347ec393c280414a182b7361d7b17.tar.gz riscv-openocd-7690a74b094347ec393c280414a182b7361d7b17.tar.bz2 |
flash/nor: implement flash bank deallocation in drivers with simple alloc
All drivers which simply allocate one driver_priv memory block
per each bank now use default_flash_free_driver_priv()
Change-Id: I425bf4213c3632f02dbe11ab819c31eda9b2db62
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4417
Tested-by: jenkins
Reviewed-by: Liviu Dudau <liviu@dudau.co.uk>
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/flash/nor/mrvlqspi.c')
-rw-r--r-- | src/flash/nor/mrvlqspi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nor/mrvlqspi.c b/src/flash/nor/mrvlqspi.c index d799170..eda6cc1 100644 --- a/src/flash/nor/mrvlqspi.c +++ b/src/flash/nor/mrvlqspi.c @@ -955,4 +955,5 @@ struct flash_driver mrvlqspi_flash = { .erase_check = mrvlqspi_flash_erase_check, .protect_check = mrvlqspi_protect_check, .info = mrvlqspi_get_info, + .free_driver_priv = default_flash_free_driver_priv, }; |