diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-08-03 11:54:56 +1000 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-08-17 16:29:23 +0000 |
commit | e44e6eb32ff1dcde3305535ecf38e74b8c736c02 (patch) | |
tree | 33e05cab6b0517eada02fdf22dbd15aaba88c731 /fmap.c | |
parent | 099be52132361be2aa37c19bb444b35b931abecc (diff) | |
download | flashrom-e44e6eb32ff1dcde3305535ecf38e74b8c736c02.tar.gz flashrom-e44e6eb32ff1dcde3305535ecf38e74b8c736c02.tar.bz2 flashrom-e44e6eb32ff1dcde3305535ecf38e74b8c736c02.zip |
nicintel_eeprom: Check UNPROG_DEVICE in 82580 shutdown
Previously shutdown function was registered conditionally for 82580,
only if the device was not UNPROG_DEVICE. This patch moves the check
for UNPROG_DEVICE into shutdown function itself, so that shutdown
function can be always registered for 82580.
This also fixes a memory leak in nicintel_ee_shutdown_82580.
No changes for i210 device init/shutdown, only for 82580.
And very importantly this unlocks API change which plans to move
register_shutdown inside register_opaque_master, similar to what's
done in CB:56103
BUG=b:185191942
TEST=builds
Change-Id: I5c729a3a63d0106e65525a6a77b2f9104c96847f
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/56821
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'fmap.c')
0 files changed, 0 insertions, 0 deletions