env: mmc: allow support of mmc_get_env_dev with OF_CONTROL
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 15 Jun 2020 08:38:55 +0000 (10:38 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 26 Jul 2020 18:35:30 +0000 (14:35 -0400)
commit2b2f727500dc934ce201f1445c94c540ecae2798
treecbc8d0018ef09951197d15a8deae182f0cd69d21
parentacbf93b52695431b683d2665120707a3f52d6b4b
env: mmc: allow support of mmc_get_env_dev with OF_CONTROL

Use the weak function mmc_get_env_dev in mmc_offset_try_partition
function to allow dynamic selection of mmc device to use
and no more use directly the define CONFIG_SYS_MMC_ENV_DEV.

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