Nikolai Artemiev has uploaded this change for review.

View Change

it87spi.c: return error when probe fails

Make it87spi_probe() return error to match CrOS flashrom.

Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
Change-Id: Ie122c4f954d14c713fb719ec44200b2def00fed6
---
M it87spi.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/39/46439/1
diff --git a/it87spi.c b/it87spi.c
index e34f5e8..90c6655 100644
--- a/it87spi.c
+++ b/it87spi.c
@@ -161,7 +161,7 @@
msg_pdbg("No IT87* serial flash segment enabled.\n");
exit_conf_mode_ite(port);
/* Nothing to do. */
- return 0;
+ return 1;
}
msg_pdbg("Serial flash segment 0x%08x-0x%08x %sabled\n",
0xFFFE0000, 0xFFFFFFFF, (tmp & 1 << 1) ? "en" : "dis");

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

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ie122c4f954d14c713fb719ec44200b2def00fed6
Gerrit-Change-Number: 46439
Gerrit-PatchSet: 1
Gerrit-Owner: Nikolai Artemiev <nartemiev@google.com>
Gerrit-MessageType: newchange