Commit ba7f9bfd authored by Yann Gautier's avatar Yann Gautier
Browse files

stm32mp: check stm32_sdmmc2_mmc_init return


Signed-off-by: default avatarYann Gautier <yann.gautier@st.com>
parent 77614a99
...@@ -282,7 +282,11 @@ void stm32mp1_io_setup(void) ...@@ -282,7 +282,11 @@ void stm32mp1_io_setup(void)
} }
params.device_info = &device_info; params.device_info = &device_info;
stm32_sdmmc2_mmc_init(&params); if (stm32_sdmmc2_mmc_init(&params) != 0) {
ERROR("SDMMC%u init failed\n",
boot_context->boot_interface_instance);
panic();
}
/* Open MMC as a block device to read GPT table */ /* Open MMC as a block device to read GPT table */
io_result = register_io_dev_block(&mmc_dev_con); io_result = register_io_dev_block(&mmc_dev_con);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment