mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
committed by
Wolfgang Denk
parent
07c07635b4
commit
df3fc52608
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user