]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: Log the error when init fails
authorSimon Glass <sjg@chromium.org>
Fri, 20 Sep 2024 07:24:38 +0000 (09:24 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 3 Oct 2024 17:52:17 +0000 (11:52 -0600)
Add an error-return log to the call in mmc_init_device()

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mmc/mmc.c

index 7e702c3ae854d347a7b5b447761143a52bd54c00..e8870e30689c6604945e678a8129319694eb4725 100644 (file)
@@ -3188,7 +3188,7 @@ int mmc_init_device(int num)
        if (uclass_get_device_by_seq(UCLASS_MMC, num, &dev)) {
                ret = uclass_get_device(UCLASS_MMC, num, &dev);
                if (ret)
-                       return ret;
+                       return log_msg_ret("ini", ret);
        }
 
        m = mmc_get_mmc_dev(dev);