mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00
stm32mp: check stm32_sdmmc2_mmc_init return
Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
77614a9949
commit
ba7f9bfd8e
1 changed files with 5 additions and 1 deletions
|
@ -282,7 +282,11 @@ void stm32mp1_io_setup(void)
|
|||
}
|
||||
|
||||
params.device_info = &device_info;
|
||||
stm32_sdmmc2_mmc_init(¶ms);
|
||||
if (stm32_sdmmc2_mmc_init(¶ms) != 0) {
|
||||
ERROR("SDMMC%u init failed\n",
|
||||
boot_context->boot_interface_instance);
|
||||
panic();
|
||||
}
|
||||
|
||||
/* Open MMC as a block device to read GPT table */
|
||||
io_result = register_io_dev_block(&mmc_dev_con);
|
||||
|
|
Loading…
Add table
Reference in a new issue