From: Emmanuel Vadot Date: Tue, 20 Jun 2017 06:09:40 +0000 (+0200) Subject: api: Define a default mmc max device X-Git-Tag: baikal/mips/sdk5.9~4509 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=41b90d820de6810104e0859b240101ed5fd9b721;p=uboot.git api: Define a default mmc max device Define a default number of 1 for mmc max device if board config didn't specify one. Signed-off-by: Emmanuel Vadot Reviewed-by: Simon Glass --- diff --git a/api/api_storage.c b/api/api_storage.c index f858f09f1a..8bed2f3c91 100644 --- a/api/api_storage.c +++ b/api/api_storage.c @@ -43,6 +43,9 @@ 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) {