diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/st/u8500/cmd_cdump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/st/u8500/cmd_cdump.c b/board/st/u8500/cmd_cdump.c index 9b203ab83..87ae2a793 100644 --- a/board/st/u8500/cmd_cdump.c +++ b/board/st/u8500/cmd_cdump.c @@ -251,6 +251,10 @@ static int wait_for_mmc(void) struct mmc *mmc; mmc = find_mmc_device(CONFIG_MMC_DEV_NUM); + if (!mmc) { + printf("MMC device %d not found\n", CONFIG_MMC_DEV_NUM); + return 1; + } while (mmc_init(mmc) != 0) { printf("Insert MMC/SD card or press ctrl-c to abort\n"); putc('.'); |