summaryrefslogtreecommitdiffstats
path: root/nicintel.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-05-21 09:40:58 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2021-05-23 04:18:31 +0000
commit6a5db26e686d32165621a6839843639192a33102 (patch)
tree2566d9d58639d2115b9c9a2f26922cb6ed478880 /nicintel.c
parentdaa86b53012910428861330c8bf82ea3fe183796 (diff)
downloadflashrom-6a5db26e686d32165621a6839843639192a33102.tar.gz
flashrom-6a5db26e686d32165621a6839843639192a33102.tar.bz2
flashrom-6a5db26e686d32165621a6839843639192a33102.zip
programmer: Smoothen register_par_master API
It was impossible to register a const struct par_master that would point to dynamically allocated `data`. Fix that so that we won't have to create more mutable globals. BUG=b:185191942 TEST=builds Change-Id: I95bc92f6c54c5bcdac1c522ca87054aaffed0f40 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/54169 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'nicintel.c')
-rw-r--r--nicintel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nicintel.c b/nicintel.c
index 4672890f7..afd268266 100644
--- a/nicintel.c
+++ b/nicintel.c
@@ -99,7 +99,7 @@ int nicintel_init(void)
pci_rmmio_writew(0x0001, nicintel_control_bar + CSR_FCR);
max_rom_decode.parallel = NICINTEL_MEMMAP_SIZE;
- register_par_master(&par_master_nicintel, BUS_PARALLEL);
+ register_par_master(&par_master_nicintel, BUS_PARALLEL, NULL);
return 0;
}