diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 604a6e6a6e..1d7a5b0e6a 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -545,8 +545,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 f9b5d53941..b0e5260f0c 100644 --- a/src/include/elog.h +++ b/src/include/elog.h @@ -145,6 +145,7 @@ struct elog_event_data_me_extended { /* EC Shutdown Reason */ #define ELOG_TYPE_EC_SHUTDOWN 0xa5 +/* 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);