diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 7c282d1d1f..604a6e6a6e 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -547,7 +547,7 @@ int elog_init(void) /* Prepare SPI */ spi_init(); - elog_spi = spi_flash_probe(0, 0); + elog_spi = spi_flash_probe(CONFIG_BOOT_MEDIA_SPI_BUS, 0); if (!elog_spi) { printk(BIOS_ERR, "ELOG: Unable to find SPI flash\n"); return -1;