Skip to content
Snippets Groups Projects
Commit 8fee8845 authored by Andreas Fenkart's avatar Andreas Fenkart Committed by Jagan Teki
Browse files

enf_sf: reuse setup_flash_device instead of open coding it


setup_flash_device selects one of two code paths depending on the driver
model being used (=CONFIG_DM_SPI_FLASH). env_relocate_spec only used
the non driver-model code path. I'm unsure why, either none of the
platforms that need relocation use the driver model, or - worse - the
driver model is not yet usable when relocating.

Signed-off-by: default avatarAndreas Fenkart <afenkart@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
Tested-by: default avatarJagan Teki <jagan@openedev.com>
parent afa81a77
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment