soc/intel/apollolake: don't probe flash manually
Rely on boot_device_spi_flash() to provide the spi_flash object. There's no need to duplicate the probing logic. BUG=chrome-os-partner:56151 BRANCH=reef Change-Id: I91900a3dfad7ba92cbd3b0ace77b08db04cff0b6 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/17867 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
parent
8099803c46
commit
dfcc60c385
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue