Edward O'Callaghan has uploaded this change for review.

View Change

cli_classic.c: Use libflashrom API over internal symb for init

Change-Id: I6f14082b8af8e7cbe829f1449cbcaaa420853d70
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
---
M cli_classic.c
1 file changed, 12 insertions(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/23/72823/1
diff --git a/cli_classic.c b/cli_classic.c
index d4aa27a..dd9b1d6 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -571,7 +571,7 @@
/* Probe for up to eight flash chips. */
struct flashctx flashes[8] = {{0}};
struct flashctx *fill_flash;
- const char *name;
+ const char *name = NULL;
int opt, i, j;
int startchip = -1, chipcount = 0, option_index = 0;
int operation_specified = 0;
@@ -951,7 +951,7 @@
}
}

- if (programmer_init(prog, pparam)) {
+ if (flashrom_programmer_init(NULL, name, pparam)) {
msg_perr("Error: Programmer initialization failed.\n");
ret = 1;
goto out_shutdown;

To view, visit change 72823. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6f14082b8af8e7cbe829f1449cbcaaa420853d70
Gerrit-Change-Number: 72823
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-MessageType: newchange