summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/apollolake/romstage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/apollolake/romstage.c b/src/soc/intel/apollolake/romstage.c
index 8c2a1a330a..97be0f6213 100644
--- a/src/soc/intel/apollolake/romstage.c
+++ b/src/soc/intel/apollolake/romstage.c
@@ -318,9 +318,9 @@ void mainboard_save_dimm_info(void)
int get_sw_write_protect_state(void)
{
uint8_t status;
- struct spi_flash *flash;
+ const struct spi_flash *flash;
- flash = spi_flash_probe(CONFIG_BOOT_DEVICE_SPI_FLASH_BUS, 0);
+ flash = boot_device_spi_flash();
if (!flash)
return 0;