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/sim3x.c | |
parent | 3d3b45af465f6dcfc85ea69cc10a719bc3b2851c (diff) |
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/sim3x.c')
-rw-r--r-- | src/flash/nor/sim3x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flash/nor/sim3x.c b/src/flash/nor/sim3x.c index ce9a21ed..f282ba08 100644 --- a/src/flash/nor/sim3x.c +++ b/src/flash/nor/sim3x.c @@ -1122,5 +1122,6 @@ struct flash_driver sim3x_flash = { .auto_probe = sim3x_auto_probe, .erase_check = default_flash_blank_check, .protect_check = sim3x_flash_protect_check, - .info = sim3x_flash_info + .info = sim3x_flash_info, + .free_driver_priv = default_flash_free_driver_priv, }; |