Use the mmcboot handler instead. This handler automatically determines
the boot partition by considering the partition's state, thus avoiding
to specify it manually.

Signed-off-by: Fabian Pfitzner <[email protected]>
---
 arch/arm/boards/karo-tx6x/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boards/karo-tx6x/board.c 
b/arch/arm/boards/karo-tx6x/board.c
index f3ff59afb9..43e23f00cd 100644
--- a/arch/arm/boards/karo-tx6x/board.c
+++ b/arch/arm/boards/karo-tx6x/board.c
@@ -115,7 +115,7 @@ static int tx6x_devices_init(void)
                of_device_enable_and_register_by_name("environment-nand");
                of_device_enable_and_register_by_alias("nand");
        } else {
-               imx6_bbu_internal_mmc_register_handler("eMMC", 
"/dev/mmc3.boot0",
+               imx6_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc3",
                                                       
BBU_HANDLER_FLAG_DEFAULT);
                of_device_enable_and_register_by_name("environment-emmc");
                of_device_enable_and_register_by_alias("mmc3");
-- 
2.47.3


Reply via email to