]> git.dujemihanovic.xyz Git - u-boot.git/commit
enf_sf: reuse setup_flash_device instead of open coding it
authorAndreas Fenkart <afenkart@gmail.com>
Sat, 8 Apr 2017 09:59:32 +0000 (11:59 +0200)
committerJagan Teki <jagan@openedev.com>
Wed, 3 May 2017 05:47:54 +0000 (11:17 +0530)
commit8fee8845e7543aec3edd64fcef2d6ff268d65a0d
tree1686752d42fabd8daf24b37caca58da2c75ff713
parentafa81a7750d63be9cb9eeb99a26c73bc93f4e1d9
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: Andreas Fenkart <afenkart@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@openedev.com>
common/env_sf.c