From: Simon Glass Date: Fri, 20 Sep 2024 07:24:38 +0000 (+0200) Subject: mmc: Log the error when init fails X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=e771a9db4e7c8603e296ee065823cd824cc56baa;p=u-boot.git mmc: Log the error when init fails Add an error-return log to the call in mmc_init_device() Signed-off-by: Simon Glass --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7e702c3ae8..e8870e3068 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);