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:
Aaron Durbin 2016-12-14 12:32:35 -06:00
parent 8099803c46
commit dfcc60c385
1 changed files with 2 additions and 2 deletions

View File

@ -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;