summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@bidouilliste.com>2017-06-20 08:09:40 +0200
committerTom Rini <trini@konsulko.com>2017-06-23 10:38:06 -0400
commit6d7a57076476789c77d59a0e8b47fc975de7231e (patch)
tree065054f241fcfc30e2e2ee4091ade343ee3801fe /api
parent872faf5d1382a265be42ecaaa84abce5907811ea (diff)
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 <manu@bidouilliste.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'api')
-rw-r--r--api/api_storage.c3
1 files changed, 3 insertions, 0 deletions
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)
{