mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-13 12:32:47 +01:00
MMC: u-boot-spl may be compiled without partition support
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
cdfd1ac6df
commit
122efd4389
1 changed files with 2 additions and 0 deletions
|
|
@ -1232,7 +1232,9 @@ int mmc_startup(struct mmc *mmc)
|
|||
(mmc->cid[1] >> 8) & 0xff, mmc->cid[1] & 0xff);
|
||||
sprintf(mmc->block_dev.revision, "%d.%d", mmc->cid[2] >> 28,
|
||||
(mmc->cid[2] >> 24) & 0xf);
|
||||
#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBDISK_SUPPORT)
|
||||
init_part(&mmc->block_dev);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue