diff options
-rw-r--r-- | src/drivers/elog/elog.c | 3 | ||||
-rw-r--r-- | src/include/elog.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 059b089bb8..94af16e3c0 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -546,8 +546,7 @@ int elog_init(void) elog_debug("elog_init()\n"); - /* Prepare SPI */ - spi_init(); + /* Probe SPI chip. SPI controller must already be initialized. */ elog_spi = spi_flash_probe(CONFIG_BOOT_MEDIA_SPI_BUS, 0); if (!elog_spi) { printk(BIOS_ERR, "ELOG: Unable to find SPI flash\n"); diff --git a/src/include/elog.h b/src/include/elog.h index 648ce42b38..77275456e1 100644 --- a/src/include/elog.h +++ b/src/include/elog.h @@ -148,6 +148,7 @@ struct elog_event_data_me_extended { /* CPU Thermal Trip */ #define ELOG_TYPE_THERM_TRIP 0xa7 +/* Eventlog backing storage must be initialized before calling elog_init(). */ extern int elog_init(void); extern int elog_clear(void); extern void elog_add_event_raw(u8 event_type, void *data, u8 data_size); |