summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2011-05-24 05:31:19 +0000
committerWolfgang Denk <wd@denx.de>2011-07-26 14:10:14 +0200
commitdf3fc52608daa1e10332f59cd2f226ba400d1c98 (patch)
tree0c614241f09bc6055cbb5855feeaaeeeca975ce5 /drivers/mmc
parent07c07635b4f6d4ee2a03cd508beeeaccde4b9d7e (diff)
downloadtalos-obmc-uboot-df3fc52608daa1e10332f59cd2f226ba400d1c98.tar.gz
talos-obmc-uboot-df3fc52608daa1e10332f59cd2f226ba400d1c98.zip
disk/part.c: Make features optional
If we don't want to build support for any partition types we can now add #undef CONFIG_PARTITIONS in a board config file to keep this from being compiled in. Otherwise boards assume this is compiled in by default Signed-off-by: Matthew McClintock <msm@freescale.com>
Diffstat (limited to 'drivers/mmc')
-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 cbd75673b8..7e703c0ec6 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1167,12 +1167,14 @@ int mmc_register(struct mmc *mmc)
return 0;
}
+#ifdef CONFIG_PARTITIONS
block_dev_desc_t *mmc_get_dev(int dev)
{
struct mmc *mmc = find_mmc_device(dev);
return mmc ? &mmc->block_dev : NULL;
}
+#endif
int mmc_init(struct mmc *mmc)
{
OpenPOWER on IntegriCloud