summaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc.c
diff options
context:
space:
mode:
authorMikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>2012-07-09 08:53:38 +0000
committerAndy Fleming <afleming@freescale.com>2012-09-05 17:32:41 -0500
commit122efd43899597e79bbe0a11298279f90ee55a17 (patch)
tree22ff1f2244e38d4a57d322e0ba6732ee362b0579 /drivers/mmc/mmc.c
parentcdfd1ac6df16f11fa00e30a76e3c37d61c24b7fa (diff)
downloadu-boot-imx-122efd43899597e79bbe0a11298279f90ee55a17.zip
u-boot-imx-122efd43899597e79bbe0a11298279f90ee55a17.tar.gz
u-boot-imx-122efd43899597e79bbe0a11298279f90ee55a17.tar.bz2
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>
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 3262740..1f666c2 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;
}