From 9ba938e744d81e0164f5abbd087c461596ad63d4 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Fri, 28 Oct 2022 20:27:06 -0400 Subject: Convert CONFIG_SYS_MMC_MAX_DEVICE to Kconfig This converts the following to Kconfig: CONFIG_SYS_MMC_MAX_DEVICE Signed-off-by: Tom Rini Reviewed-by: Simon Glass Reviewed-by: Jaehoon Chung --- api/Kconfig | 5 +++++ api/api_storage.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'api') diff --git a/api/Kconfig b/api/Kconfig index 382aa4ad3f0..eb8d5d0596a 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 adca44b4fd2..997e8727a96 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) -- cgit v1.2.3