Patchwork [U-Boot,V2,6/8] MMC: u-boot-spl may be compiled without partition support

login
register
mail settings
Submitter Mikhail Kshevetskiy
Date July 9, 2012, 3:31 a.m.
Message ID <1341804693-1158-6-git-send-email-mikhail.kshevetskiy@gmail.com>
Download mbox | patch
Permalink /patch/169682/
State Superseded
Delegated to: Andy Fleming
Headers show

Comments

Mikhail Kshevetskiy - July 9, 2012, 3:31 a.m.
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>
---
Change for v2:
 * fix checkpatch warnings
---
 drivers/mmc/mmc.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index aebe578..69df64a 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1253,7 +1253,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;
 }