api: Define a default mmc max device
[oweals/u-boot.git] / api / api_storage.c
index f858f09f1a0eabfefcb35a2d038fffa9a106b700..8bed2f3c91fd37a400c793d03cfae4d0669a3373 100644 (file)
@@ -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)
 {