UPSTREAM: 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 TEST=None 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> Change-Id: I91900a3dfad7ba92cbd3b0ace77b08db04cff0b6 Reviewed-on: https://chromium-review.googlesource.com/421026 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
4e42a37159
commit
2bdc57b886
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue