1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

par_master: Move shutdown function above par_master struct

This patch prepares par masters to use new API which allows to
register shutdown function in par_master struct. See also later
patch in this chain, where par masters are converted to new API.

BUG=b:185191942
TEST=builds and ninja test
Comparing flashrom binary before and after the patch,
make clean && make CONFIG_EVERYTHING=yes VERSION=none
binary is the same

Change-Id: I87e9ce0ad9b39b39645dc24cb0d75d1e7a6d9047
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/57155
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:
Anastasia Klimchuk
2021-08-26 10:30:16 +10:00
committed by Edward O'Callaghan
parent d1697e9abe
commit d681ab286a
2 changed files with 18 additions and 18 deletions

View File

@ -79,6 +79,13 @@ static uint8_t nicrealtek_chip_readb(const struct flashctx *flash, const chipadd
return val;
}
static int nicrealtek_shutdown(void *data)
{
/* FIXME: We forgot to disable software access again. */
free(data);
return 0;
}
static const struct par_master par_master_nicrealtek = {
.chip_readb = nicrealtek_chip_readb,
.chip_readw = fallback_chip_readw,
@ -90,13 +97,6 @@ static const struct par_master par_master_nicrealtek = {
.chip_writen = fallback_chip_writen,
};
static int nicrealtek_shutdown(void *data)
{
/* FIXME: We forgot to disable software access again. */
free(data);
return 0;
}
static int nicrealtek_init(void)
{
struct pci_dev *dev = NULL;