aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chipset_enable.c4
-rw-r--r--include/programmer.h2
-rw-r--r--internal.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index 64af483c..d8aa53dd 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -2182,7 +2182,7 @@ const struct penable chipset_enables[] = {
{0},
};
-int chipset_flash_enable(void)
+int chipset_flash_enable(const struct programmer_cfg *cfg)
{
struct pci_dev *dev = NULL;
int ret = -2; /* Nothing! */
@@ -2231,7 +2231,7 @@ int chipset_flash_enable(void)
continue;
}
msg_pinfo("Enabling flash write... ");
- ret = chipset_enables[i].doit(NULL, dev, chipset_enables[i].device_name);
+ ret = chipset_enables[i].doit(cfg, dev, chipset_enables[i].device_name);
if (ret == NOT_DONE_YET) {
ret = -2;
msg_pinfo("OK - searching further chips.\n");
diff --git a/include/programmer.h b/include/programmer.h
index 2a4b1181..5331a12b 100644
--- a/include/programmer.h
+++ b/include/programmer.h
@@ -231,7 +231,7 @@ void board_handle_before_laptop(void);
int board_flash_enable(const char *vendor, const char *model, const char *cb_vendor, const char *cb_model);
/* chipset_enable.c */
-int chipset_flash_enable(void);
+int chipset_flash_enable(const struct programmer_cfg *cfg);
/* processor_enable.c */
int processor_flash_enable(void);
diff --git a/internal.c b/internal.c
index 18ac088a..426730fd 100644
--- a/internal.c
+++ b/internal.c
@@ -282,7 +282,7 @@ static int internal_init(const struct programmer_cfg *cfg)
/* try to enable it. Failure IS an option, since not all motherboards
* really need this to be done, etc., etc.
*/
- ret = chipset_flash_enable();
+ ret = chipset_flash_enable(cfg);
if (ret == -2) {
msg_perr("WARNING: No chipset found. Flash detection "
"will most likely fail.\n");