Introduce ERROR_FATAL, abort upon failed chipset enables
Corresponding to flashrom svn r1426.
Signed-off-by: Tadas Slotkus <devtadas@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
diff --git a/chipset_enable.c b/chipset_enable.c
index eb4031b..21f2e86 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -1325,6 +1325,10 @@
msg_pinfo("OK.\n");
else if (ret == ERROR_NONFATAL)
msg_pinfo("PROBLEMS, continuing anyway\n");
+ if (ret == ERROR_FATAL) {
+ msg_perr("FATAL ERROR!\n");
+ return ret;
+ }
}
s = flashbuses_to_text(buses_supported);