diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/Kconfig | 5 | ||||
-rw-r--r-- | api/api_storage.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/api/Kconfig b/api/Kconfig index 382aa4ad3f..eb8d5d0596 100644 --- a/api/Kconfig +++ b/api/Kconfig @@ -5,4 +5,9 @@ config API help This option enables the U-Boot API. See api/README for more information. +config SYS_MMC_MAX_DEVICE + int "Maximum number of MMC devices exposed via the API" + depends on API + default 1 + endmenu diff --git a/api/api_storage.c b/api/api_storage.c index adca44b4fd..997e8727a9 100644 --- a/api/api_storage.c +++ b/api/api_storage.c @@ -44,10 +44,6 @@ struct stor_spec { static struct stor_spec specs[ENUM_MAX] = { { 0, 0, 0, 0, NULL }, }; -#ifndef CONFIG_SYS_MMC_MAX_DEVICE -#define CONFIG_SYS_MMC_MAX_DEVICE 1 -#endif - void dev_stor_init(void) { #if defined(CONFIG_IDE) |