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/xmc4xxx.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/xmc4xxx.c')
-rw-r--r-- | src/flash/nor/xmc4xxx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nor/xmc4xxx.c b/src/flash/nor/xmc4xxx.c index 5677ef0..0b6d48c 100644 --- a/src/flash/nor/xmc4xxx.c +++ b/src/flash/nor/xmc4xxx.c @@ -1356,4 +1356,5 @@ struct flash_driver xmc4xxx_flash = { .info = xmc4xxx_get_info_command, .protect_check = xmc4xxx_protect_check, .protect = xmc4xxx_protect, + .free_driver_priv = default_flash_free_driver_priv, }; |