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

Unified Diff: it85spi.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: it85spi.c
diff --git a/it85spi.c b/it85spi.c
index 2493c1f66cbd2364ce15326a397974a5c1221f3f..37a7e1ed6daa66bfe706ac947fbc78cb94e7ff1d 100644
--- a/it85spi.c
+++ b/it85spi.c
@@ -79,6 +79,8 @@
#define INDIRECT_WRITE(base, value) OUTB(value, (base) + 4)
#endif /* LPC_IO */
+void it85xx_shutdown(void *);
+
#ifdef LPC_IO
unsigned int shm_io_base;
#endif
@@ -301,6 +303,7 @@ int it85xx_spi_common_init(void)
/* Set this as spi controller. */
spi_controller = SPI_CONTROLLER_IT85XX;
+ register_shutdown(it85xx_shutdown, NULL);
return 0;
}
@@ -342,11 +345,10 @@ int it85xx_probe_spi_flash(const char *name)
return ret;
}
-int it85xx_shutdown(void)
+void it85xx_shutdown(void *data)
{
msg_pdbg("%s():%d\n", __func__, __LINE__);
it85xx_exit_scratch_rom();
- return 0;
}
/* According to ITE 8502 document, the procedure to follow mode is following:

Powered by Google App Engine
This is Rietveld 408576698