From: Mikhail Kshevetskiy Date: Mon, 9 Jul 2012 08:53:38 +0000 (+0000) Subject: MMC: u-boot-spl may be compiled without partition support X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=122efd43899597e79bbe0a11298279f90ee55a17;p=u-boot.git MMC: u-boot-spl may be compiled without partition support Signed-off-by: Mikhail Kshevetskiy Signed-off-by: Andy Fleming --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 3262740567..1f666c2fdc 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -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; }