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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user