Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: internal.c

Issue 6897014: Do not call EC programmer shutdown functions explicitly. (Closed) Base URL: svn://coreboot.org/flashrom/trunk
Patch Set: rename shutdown() to flashrom_shutdown() to avoid conflict with shutdown(2) Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: internal.c
diff --git a/internal.c b/internal.c
index 2f70f8512ee4676f5d9c1a98736dd8c1ea149ae7..7b739743eb5d7652c9cfb92f398cc19f137e7df9 100644
--- a/internal.c
+++ b/internal.c
@@ -238,6 +238,7 @@ int internal_init(void)
probe_target_bus_later = 1;
}
+ register_shutdown(internal_shutdown, NULL);
Louis 2011/04/26 10:06:06 remove this if we restore the shutdown function in
dhendrix 2011/04/27 02:08:06 The idea is to no longer rely on programmer_table[
get_io_perms();
#if defined(__i386__) || defined(__x86_64__)
@@ -371,20 +372,9 @@ int internal_init(void)
#endif
}
-int internal_shutdown(void)
+void internal_shutdown(void *data)
{
release_io_perms();
-
-#if defined(__i386__) || defined(__x86_64__)
- if (target_bus == CHIP_BUSTYPE_LPC ||
- target_bus == CHIP_BUSTYPE_FWH) {
- it85xx_shutdown();
- wpce775x_shutdown();
- mec1308_shutdown();
- }
-#endif
-
- return 0;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698