From 6a5db26e686d32165621a6839843639192a33102 Mon Sep 17 00:00:00 2001 From: Anastasia Klimchuk Date: Fri, 21 May 2021 09:40:58 +1000 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/54169 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- satasii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'satasii.c') diff --git a/satasii.c b/satasii.c index 8a0938d6..c9dfdadb 100644 --- a/satasii.c +++ b/satasii.c @@ -100,7 +100,7 @@ int satasii_init(void) if ((id != 0x0680) && (!(pci_mmio_readl(sii_bar) & (1 << 26)))) msg_pwarn("Warning: Flash seems unconnected.\n"); - register_par_master(&par_master_satasii, BUS_PARALLEL); + register_par_master(&par_master_satasii, BUS_PARALLEL, NULL); return 0; } -- cgit v1.2.3