diff options
Diffstat (limited to 'drivers/mmc/mmc.c')
| -rw-r--r-- | drivers/mmc/mmc.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index cdcf2e0c8fe..2c1f4f9c336 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -20,6 +20,7 @@  #include <linux/bitops.h>  #include <linux/delay.h>  #include <linux/printk.h> +#include <linux/sizes.h>  #include <power/regulator.h>  #include <malloc.h>  #include <memalign.h> @@ -3277,8 +3278,8 @@ int mmc_set_bkops_enable(struct mmc *mmc, bool autobkops, bool enable)  __weak int mmc_get_env_dev(void)  { -#ifdef CONFIG_SYS_MMC_ENV_DEV -	return CONFIG_SYS_MMC_ENV_DEV; +#ifdef CONFIG_ENV_MMC_DEVICE_INDEX +	return CONFIG_ENV_MMC_DEVICE_INDEX;  #else  	return 0;  #endif | 
