summaryrefslogtreecommitdiffstats
path: root/nicintel_eeprom.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-05-13 12:28:47 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2021-05-23 04:18:54 +0000
commit9309bed2906440cfac1257135805fd82c5d8b7a8 (patch)
tree161cbae0a42155f150d6bb31cda696ad6a52dd8c /nicintel_eeprom.c
parent6a5db26e686d32165621a6839843639192a33102 (diff)
downloadflashrom-9309bed2906440cfac1257135805fd82c5d8b7a8.tar.gz
flashrom-9309bed2906440cfac1257135805fd82c5d8b7a8.tar.bz2
flashrom-9309bed2906440cfac1257135805fd82c5d8b7a8.zip
programmer: Smoothen register_opaque_master() API
It was impossible to register a const struct opaque_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: Id3adb4cf04ae04dbe87ddb96f30871cb5f7c8ff0 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/54170 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'nicintel_eeprom.c')
-rw-r--r--nicintel_eeprom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nicintel_eeprom.c b/nicintel_eeprom.c
index f95107ff6..e170fcf4a 100644
--- a/nicintel_eeprom.c
+++ b/nicintel_eeprom.c
@@ -486,7 +486,7 @@ int nicintel_ee_init(void)
return 1;
}
- return register_opaque_master(&opaque_master_nicintel_ee_82580);
+ return register_opaque_master(&opaque_master_nicintel_ee_82580, NULL);
} else {
nicintel_eebar = rphysmap("Intel i210 NIC w/ emulated EEPROM",
io_base_addr + 0x12000, MEMMAP_SIZE);
@@ -496,7 +496,7 @@ int nicintel_ee_init(void)
if (register_shutdown(nicintel_ee_shutdown_i210, NULL))
return 1;
- return register_opaque_master(&opaque_master_nicintel_ee_i210);
+ return register_opaque_master(&opaque_master_nicintel_ee_i210, NULL);
}
return 1;