From: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com> Date: Mon, 9 Jul 2012 08:53:38 +0000 (+0000) Subject: MMC: u-boot-spl may be compiled without partition support X-Git-Tag: v2025.01-rc5-pxa1908~17302^2~11 X-Git-Url: http://git.dujemihanovic.xyz/html/static/gitweb.css?a=commitdiff_plain;h=122efd43899597e79bbe0a11298279f90ee55a17;p=u-boot.git 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> --- 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; }