Patchwork [U-Boot,V3,1/3] MMC: u-boot-spl may be compiled without partition support

login
register
mail settings
Submitter Mikhail Kshevetskiy
Date July 9, 2012, 6:53 p.m.
Message ID <1341860020-11507-1-git-send-email-mikhail.kshevetskiy@gmail.com>
Download mbox | patch
Permalink /patch/169935/
State Accepted, archived
Delegated to: Andy Fleming
Headers show

Comments

Mikhail Kshevetskiy - July 9, 2012, 6:53 p.m.
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>
---
Change for v3:
 * split MMC+SPL+no partition table support bugfix to separate patch
   series (series 3/3)
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;
 }