]> git.dujemihanovic.xyz Git - u-boot.git/commit
env: correctly handle env_load_prio
authorPatrick Delaunay <patrick.delaunay@st.com>
Tue, 28 Jul 2020 09:51:17 +0000 (11:51 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 31 Jul 2020 14:13:00 +0000 (10:13 -0400)
commit6d8d8400a2bee44e0efbd7dbcfa33965560370d6
treef300410fb1b42df628e7ccb51885ade1953f3b32
parent22140d16e56cec3c2ea17a0abaf3d061ccbee039
env: correctly handle env_load_prio

Only update gd->env_load_prio in generic function env_load()
and no more in the weak function env_get_location() which is
called in many place (for example in env_driver_lookup, even
for ENVOP_SAVE operation).

This patch is a preliminary step to use env_driver_lookup()/
env_get_location() in new function env_select() without
updating gd->env_load_prio.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
env/env.c