|
@@ -583,7 +583,7 @@ int sst_write_bp(struct spi_flash *flash, u32 offset, size_t len,
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_SPI_FLASH_STMICRO
|
|
|
+#if defined(CONFIG_SPI_FLASH_STMICRO) || defined(CONFIG_SPI_FLASH_SST)
|
|
|
static void stm_get_locked_range(struct spi_flash *flash, u8 sr, loff_t *ofs,
|
|
|
u32 *len)
|
|
|
{
|
|
@@ -750,4 +750,4 @@ int stm_unlock(struct spi_flash *flash, u32 ofs, size_t len)
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
-#endif /* CONFIG_SPI_FLASH_STMICRO */
|
|
|
+#endif
|