]> git.sur5r.net Git - u-boot/commitdiff
spl: do not hang in spl_register_fat_device but return error value. It allows to...
authorGuillaume GARDET <guillaume.gardet@free.fr>
Wed, 15 Oct 2014 15:53:14 +0000 (17:53 +0200)
committerTom Rini <trini@ti.com>
Mon, 27 Oct 2014 21:54:08 +0000 (17:54 -0400)
Do not hang in spl_register_fat_device but return an error value.
It allows to use both CONFIG_SPL_FAT_SUPPORT and CONFIG_SPL_EXT_SUPPORT.
If FAT load fails, then EXT load is tried.

Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
Cc: Tom Rini <trini@ti.com>
common/spl/spl_fat.c

index 91481fcc134a9de791c15dc6d773943ba1064ec1..350f7d9fd684f610c223f1dc8a58658b43b7f7eb 100644 (file)
@@ -30,7 +30,7 @@ static int spl_register_fat_device(block_dev_desc_t *block_dev, int partition)
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
                printf("%s: fat register err - %d\n", __func__, err);
 #endif
-               hang();
+               return err;
        }
 
        fat_registered = 1;