[U-Boot] [PATCH] 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 --- api/api_storage.c | 3 +++ 1 file changed, 3 insertions(+)
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) {

On 20 June 2017 at 00:09, Emmanuel Vadot manu@bidouilliste.com wrote:
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
api/api_storage.c | 3 +++ 1 file changed, 3 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org

On Tue, Jun 20, 2017 at 08:09:40AM +0200, Emmanuel Vadot wrote:
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
Applied to u-boot/master, thanks!
participants (3)
-
Emmanuel Vadot
-
Simon Glass
-
Tom Rini