diff options
Diffstat (limited to 'env/sf.c')
-rw-r--r-- | env/sf.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -60,7 +60,7 @@ static int setup_flash_device(void) ret = spi_flash_probe_bus_cs(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, 0, 0, &new); if (ret) { - set_default_env("!spi_flash_probe_bus_cs() failed"); + set_default_env("spi_flash_probe_bus_cs() failed", 0); return ret; } @@ -72,7 +72,7 @@ static int setup_flash_device(void) CONFIG_ENV_SPI_CS, CONFIG_ENV_SPI_MAX_HZ, CONFIG_ENV_SPI_MODE); if (!env_flash) { - set_default_env("!spi_flash_probe() failed"); + set_default_env("spi_flash_probe() failed", 0); return -EIO; } } @@ -173,7 +173,7 @@ static int env_sf_load(void) tmp_env2 = (env_t *)memalign(ARCH_DMA_MINALIGN, CONFIG_ENV_SIZE); if (!tmp_env1 || !tmp_env2) { - set_default_env("!malloc() failed"); + set_default_env("malloc() failed", 0); ret = -EIO; goto out; } @@ -268,7 +268,7 @@ static int env_sf_load(void) buf = (char *)memalign(ARCH_DMA_MINALIGN, CONFIG_ENV_SIZE); if (!buf) { - set_default_env("!malloc() failed"); + set_default_env("malloc() failed", 0); return -EIO; } @@ -279,7 +279,7 @@ static int env_sf_load(void) ret = spi_flash_read(env_flash, CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE, buf); if (ret) { - set_default_env("!spi_flash_read() failed"); + set_default_env("spi_flash_read() failed", 0); goto err_read; } |