The update handler path must be a full-path starting at '/'. Fix this by
adding the '/dev/' path prefix.

Signed-off-by: Marco Felsch <[email protected]>
---
 arch/arm/boards/protonic-imx6/board.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/protonic-imx6/board.c 
b/arch/arm/boards/protonic-imx6/board.c
index d2fb25d3cc..0d57f409d2 100644
--- a/arch/arm/boards/protonic-imx6/board.c
+++ b/arch/arm/boards/protonic-imx6/board.c
@@ -530,7 +530,7 @@ static int prt_imx6_bbu(struct prt_imx6_priv *priv)
                emmc_flags = BBU_HANDLER_FLAG_DEFAULT;
        }
 
-       devicefile = basprintf("mmc%d", dcfg->emmc_usdhc);
+       devicefile = basprintf("/dev/mmc%d", dcfg->emmc_usdhc);
        if (!devicefile) {
                ret = -ENOMEM;
                goto exit_bbu;
@@ -540,7 +540,7 @@ static int prt_imx6_bbu(struct prt_imx6_priv *priv)
        if (ret)
                goto exit_bbu;
 
-       devicefile = basprintf("mmc%d", dcfg->sd_usdhc);
+       devicefile = basprintf("/dev/mmc%d", dcfg->sd_usdhc);
        if (!devicefile) {
                ret = -ENOMEM;
                goto exit_bbu;
-- 
2.39.2


Reply via email to