[PATCH v2 14/18] mmc: Log the error when init fails
Simon Glass
sjg at chromium.org
Fri Sep 20 09:24:38 CEST 2024
Add an error-return log to the call in mmc_init_device()
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
drivers/mmc/mmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 7e702c3ae85..e8870e30689 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -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);
--
2.43.0
More information about the U-Boot
mailing list