mmc: Log the error when init fails

Add an error-return log to the call in mmc_init_device()

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2024-09-20 09:24:38 +02:00
committed by Tom Rini
parent 69bd517eeb
commit e771a9db4e

View 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);