diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-12-16 10:35:40 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-12-20 09:15:27 +0100 |
commit | 611a9428c7183f91ae676a4b2c239e23ea68e0d7 (patch) | |
tree | b4f1438655f636000380fdb02f72a21c3b858ce9 /common | |
parent | f2e70a0073ea5f816f11b80fd5ab12a2ecb307c7 (diff) | |
download | u-boot-imx-611a9428c7183f91ae676a4b2c239e23ea68e0d7.zip u-boot-imx-611a9428c7183f91ae676a4b2c239e23ea68e0d7.tar.gz u-boot-imx-611a9428c7183f91ae676a4b2c239e23ea68e0d7.tar.bz2 |
common: Fix logic in fpga programming
Stop boot process if fpga programming fails.
Without this patch boot process continues even if fpga programming
failed.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/image.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/image.c b/common/image.c index bd07e86..909dbed 100644 --- a/common/image.c +++ b/common/image.c @@ -1375,11 +1375,10 @@ int boot_get_fpga(int argc, char * const argv[], bootm_headers_t *images, img_len, BIT_PARTIAL); } - printf(" Programming %s bitstream... ", name); if (err) - printf("failed\n"); - else - printf("OK\n"); + return err; + + printf(" Programming %s bitstream... OK\n", name); break; default: printf("The given image format is not supported (corrupt?)\n"); |