Skip to content
Snippets Groups Projects
Commit f07e286c authored by Otavio Salvador's avatar Otavio Salvador Committed by Stefano Babic
Browse files

mx6qsabresd: Return status when initializing MMC

parent 810d6df0
No related branches found
No related tags found
No related merge requests found
...@@ -166,6 +166,7 @@ int board_mmc_getcd(struct mmc *mmc) ...@@ -166,6 +166,7 @@ int board_mmc_getcd(struct mmc *mmc)
int board_mmc_init(bd_t *bis) int board_mmc_init(bd_t *bis)
{ {
s32 status = 0;
int i; int i;
/* /*
...@@ -196,15 +197,15 @@ int board_mmc_init(bd_t *bis) ...@@ -196,15 +197,15 @@ int board_mmc_init(bd_t *bis)
break; break;
default: default:
printf("Warning: you configured more USDHC controllers" printf("Warning: you configured more USDHC controllers"
"(%d) than supported by the board\n", i + 1); "(%d) then supported by the board (%d)\n",
return 0; i + 1, CONFIG_SYS_FSL_USDHC_NUM);
} return status;
}
if (fsl_esdhc_initialize(bis, &usdhc_cfg[i])) status |= fsl_esdhc_initialize(bis, &usdhc_cfg[i]);
printf("Warning: failed to initialize mmc dev %d\n", i);
} }
return 0; return status;
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment