env_mmc: correct fini partition to match init partition
authorPeter Bigot <pab@pabigot.com>
Wed, 3 Sep 2014 17:22:43 +0000 (12:22 -0500)
committerPantelis Antoniou <panto@antoniou-consulting.com>
Fri, 3 Oct 2014 14:26:50 +0000 (17:26 +0300)
commit19345d7c9483b84578da5206b3c604b534121d88
tree895a493d6009bfe9d8b5b2bbd48efd8b40169bd6
parent6dc93e7087ccac1acb6910ac8838d9e90c602fe4
env_mmc: correct fini partition to match init partition

The code to set the MMC partition uses an weak function to obtain the
correct partition number.  Use that instead of the compile-time default
when deciding whether it needs to switch back.

Fixes: 6e7b7df4df43574 ("env_mmc: support env partition setup in runtime")
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Acked-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
common/env_mmc.c