Anastasia Klimchuk has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/55107 )
Change subject: nic3com.c: Allocate data and register shutdown at the end of init ......................................................................
nic3com.c: Allocate data and register shutdown at the end of init
This unlocks API change which plans to move register_shutdown inside register master API, see https://review.coreboot.org/c/flashrom/+/51761
BUG=b:185191942 TEST=builds
Change-Id: I9834b82650cd070556cf82207796bc6bd6b31b28 Signed-off-by: Anastasia Klimchuk aklm@chromium.org --- M nic3com.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/07/55107/1
diff --git a/nic3com.c b/nic3com.c index 4266413..17cf406 100644 --- a/nic3com.c +++ b/nic3com.c @@ -139,6 +139,8 @@ */ OUTW(SELECT_REG_WINDOW + 0, io_base_addr + INT_STATUS);
+ max_rom_decode.parallel = 128 * 1024; + struct nic3com_data *data = calloc(1, sizeof(*data)); if (!data) { msg_perr("Unable to allocate space for PAR master data\n"); @@ -152,8 +154,6 @@ free(data); return 1; } - - max_rom_decode.parallel = 128 * 1024; register_par_master(&par_master_nic3com, BUS_PARALLEL, data);
return 0;