X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=api%2Fapi_storage.c;h=6fc6f44925ccecbc863a50cc3263d6710b63fd31;hb=9804d88630cdb22f5f0ace05ac05942928410fd9;hp=f858f09f1a0eabfefcb35a2d038fffa9a106b700;hpb=c2774e6149a6bedb0941deefec84665119e685a4;p=oweals%2Fu-boot.git diff --git a/api/api_storage.c b/api/api_storage.c index f858f09f1a..6fc6f44925 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) { @@ -60,7 +63,7 @@ void dev_stor_init(void) specs[ENUM_MMC].type = DEV_TYP_STOR | DT_STOR_MMC; specs[ENUM_MMC].name = "mmc"; #endif -#if defined(CONFIG_CMD_SATA) +#if defined(CONFIG_SATA) specs[ENUM_SATA].max_dev = CONFIG_SYS_SATA_MAX_DEVICE; specs[ENUM_SATA].enum_started = 0; specs[ENUM_SATA].enum_ended = 0;