aboutsummaryrefslogtreecommitdiffstats
path: root/it8212.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 /it8212.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 'it8212.c')
-rw-r--r--it8212.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/it8212.c b/it8212.c
index ac53a6fc..2f2d43ea 100644
--- a/it8212.c
+++ b/it8212.c
@@ -67,7 +67,7 @@ int it8212_init(void)
rpci_write_long(dev, PCI_ROM_ADDRESS, io_base_addr | 0x01);
max_rom_decode.parallel = IT8212_MEMMAP_SIZE;
- register_par_master(&par_master_it8212, BUS_PARALLEL);
+ register_par_master(&par_master_it8212, BUS_PARALLEL, NULL);
return 0;
}